File tree Expand file tree Collapse file tree 1 file changed +18
-25
lines changed
Expand file tree Collapse file tree 1 file changed +18
-25
lines changed Original file line number Diff line number Diff line change 11name : golangci-lint
22on :
33 push :
4- tags :
5- - v*
64 branches :
7- - master
85 - main
6+ - master
97 pull_request :
8+
9+ permissions :
10+ contents : read
11+ # Optional: allow read access to pull requests. Use with `only-new-issues` option.
12+ # pull-requests: read
13+
1014jobs :
1115 golangci :
16+ strategy :
17+ matrix :
18+ go : [stable]
19+ os : [ubuntu-latest, macos-latest, windows-latest]
1220 name : lint
13- runs-on : ubuntu-latest
21+ runs-on : ${{ matrix.os }}
1422 steps :
15- - uses : actions/checkout@v3
23+ - uses : actions/checkout@v5
24+ - uses : actions/setup-go@v6
25+ with :
26+ go-version : ${{ matrix.go }}
1627 - name : golangci-lint
17- uses : golangci/golangci-lint-action@v2
28+ uses : golangci/golangci-lint-action@v8
1829 with :
19- version : v2.4.0
20-
21- # Optional: working directory, useful for monorepos
22- # working-directory: somedir
23-
24- # Optional: golangci-lint command line arguments.
25- # args: --issues-exit-code=0
26-
27- # Optional: show only new issues if it's a pull request. The default value is `false`.
28- # only-new-issues: true
29-
30- # Optional: if set to true then the action will use pre-installed Go.
31- # skip-go-installation: true
32-
33- # Optional: if set to true then the action don't cache or restore ~/go/pkg.
34- # skip-pkg-cache: true
35-
36- # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
37- # skip-build-cache: true
30+ version : v2.4.0
You can’t perform that action at this time.
0 commit comments