File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : CI
3+ on : [push]
4+
5+ permissions :
6+ contents : read
7+
8+ jobs :
9+ lint :
10+ name : Lint
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-go@v5
15+ with :
16+ go-version-file : ' go.mod'
17+ - name : golangci-lint
18+ uses : golangci/golangci-lint-action@v7
19+ with :
20+ version : v2.1
21+ env :
22+ VERBOSE : " true"
23+
24+ tidy :
25+ name : Tidy
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/checkout@v4
29+ - uses : actions/setup-go@v5
30+ with :
31+ go-version-file : ' go.mod'
32+ - name : Check if mods are tidy
33+ run : make check-tidy
34+
35+ test :
36+ name : Test
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v4
40+ - uses : actions/setup-go@v5
41+ with :
42+ go-version-file : ' go.mod'
43+ - name : Run tests
44+ run : make test
45+ env :
46+ TESTARGS : " -covermode=atomic -coverprofile=./coverage.out"
47+ - run : go tool cover -html=coverage.out -o=coverage.html
48+ - name : Upload coverage report to artifacts
49+ uses : actions/upload-artifact@v4
50+ with :
51+ name : coverage-report
52+ path : |
53+ coverage.out
54+ coverage.html
55+ if-no-files-found : error
Original file line number Diff line number Diff line change 1+ name : Docs
2+ on : [pull_request]
3+
4+ jobs :
5+ vale :
6+ name : Vale Lint
7+ runs-on : arc-amd64
8+ steps :
9+ - uses : actions/checkout@v4
10+ with :
11+ fetch-depth : 0
12+ sparse-checkout : |
13+ .vale.ini
14+ resources/vale-styles
15+ README.md
16+ docs/
17+ - uses : errata-ai/vale-action@v2
18+ with :
19+ # https://github.com/errata-ai/vale-action/issues/123
20+ files : " README.md,docs/"
21+ separator : " ,"
22+ reporter : github-pr-annotations
23+ fail_on_error : true
24+ env :
25+ REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+
27+ markdown :
28+ name : Markdown Lint
29+ runs-on : arc-amd64
30+ steps :
31+ - uses : actions/checkout@v4
32+ with :
33+ sparse-checkout : |
34+ README.md
35+ docs/
36+ - uses : DavidAnson/markdownlint-cli2-action@v20
37+ with :
38+ globs : " README.md,docs/**/*.md"
39+ separator : " ,"
You can’t perform that action at this time.
0 commit comments