File tree 1 file changed +13
-15
lines changed
1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : golangci-lint
2
- on : [ push, pull_request ]
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ permissions :
8
+ contents : read
3
9
jobs :
4
10
golangci :
5
11
name : lint
6
12
runs-on : ubuntu-latest
7
- timeout-minutes : 10
8
13
steps :
9
- - uses : actions/checkout@v2
14
+ - uses : actions/setup-go@v3
15
+ with :
16
+ go-version : 1.17
17
+ - uses : actions/checkout@v3
10
18
- name : golangci-lint
11
- uses : golangci/golangci-lint-action@v2
19
+ uses : golangci/golangci-lint-action@v3
12
20
with :
13
- # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
14
- version : v1.45
15
-
16
- # Optional: working directory, useful for monorepos
17
- # working-directory: somedir
18
-
19
- # Optional: golangci-lint command line arguments.
20
- args : --timeout=10m
21
-
22
- # Optional: show only new issues if it's a pull request. The default value is `false`.
23
- # only-new-issues: true
21
+ version : latest
You can’t perform that action at this time.
0 commit comments