Commit 3061011 1 parent 29c3d0a commit 3061011 Copy full SHA for 3061011
File tree 2 files changed +25
-13
lines changed
2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : golangci-lint
2
2
3
- on : [pull_request, push]
3
+ on :
4
+ pull_request :
5
+ paths-ignore :
6
+ - ' README.md'
7
+ push :
8
+ paths-ignore :
9
+ - ' README.md'
10
+
11
+ permissions :
12
+ contents : read
4
13
5
14
jobs :
6
- golangci :
7
- name : lint
15
+ build :
16
+ name : Build
8
17
runs-on : ubuntu-latest
18
+ timeout-minutes : 5
9
19
steps :
10
- - uses : actions/setup-go@v5
20
+ - name : Checkout
21
+ uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
22
+ - name : Setup Go
23
+ uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
11
24
with :
12
- go-version : 1.19
13
- - uses : actions/checkout@v4
14
- - name : golangci-lint
15
- uses : golangci/golangci-lint-action@v6
25
+ go-version-file : ' go.mod'
26
+ cache : true
27
+ - run : go mod download
28
+ - run : go build -v .
29
+ - name : Run Linters
30
+ uses : golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
16
31
with :
17
- version : v1.48.0
18
- args : --issues-exit-code=1
19
- only-new-issues : true
20
- skip-cache : true
32
+ version : latest
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ linters:
7
7
enable :
8
8
- asciicheck
9
9
- bodyclose
10
+ - copyloopvar
10
11
- depguard
11
12
- dogsled
12
13
- dupl
13
14
- errcheck
14
- - exportloopref
15
15
- funlen
16
16
- goconst
17
17
- gocognit
You can’t perform that action at this time.
0 commit comments