File tree Expand file tree Collapse file tree 3 files changed +27
-32
lines changed Expand file tree Collapse file tree 3 files changed +27
-32
lines changed Original file line number Diff line number Diff line change 9
9
name : golangci-lint
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/setup-go@v3
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-go@v5
13
14
with :
14
- go-version : ' 1.20'
15
- - uses : actions/checkout@v3
16
- - uses : golangci/golangci-lint-action@v3
15
+ go-version : stable
16
+ - uses : golangci/golangci-lint-action@v4
17
17
18
18
tests :
19
19
# run after golangci-lint action to not produce duplicated errors
@@ -22,40 +22,34 @@ jobs:
22
22
strategy :
23
23
matrix :
24
24
go :
25
- - ' 1.20'
25
+ - oldstable
26
+ - stable
26
27
os :
27
28
- ubuntu-latest
28
29
runs-on : ${{ matrix.os }}
29
30
steps :
30
- - name : Install Go
31
- uses : actions/setup-go@v3
32
- with :
33
- go-version : ${{ matrix.go }}
34
-
35
31
- name : Checkout code
36
- uses : actions/checkout@v2
32
+ uses : actions/checkout@v4
37
33
38
- - name : Setup cache
39
- uses : actions/cache@v3
34
+ - name : Install Go
35
+ uses : actions/setup-go@v5
40
36
with :
41
- path : ~/go/pkg/mod
42
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43
- restore-keys : ${{ runner.os }}-go-
37
+ go-version : ${{ matrix.go }}
44
38
45
39
- name : Test code
46
40
run : go test -race -v ./...
47
41
48
42
coverage :
49
43
runs-on : ubuntu-latest
50
44
steps :
51
- - name : Install Go
45
+ - name : Checkout code
52
46
if : success()
53
- uses : actions/setup-go@v3
54
- with :
55
- go-version : ' 1.20'
47
+ uses : actions/checkout@v4
56
48
57
- - name : Checkout code
58
- uses : actions/checkout@v3
49
+ - name : Install Go
50
+ uses : actions/setup-go@v5
51
+ with :
52
+ go-version : stable
59
53
60
54
- name : Calc coverage
61
55
run : |
Original file line number Diff line number Diff line change 68
68
69
69
70
70
# End of https://www.gitignore.io/api/go,vim,macos
71
+
72
+ .idea /
Original file line number Diff line number Diff line change 1
1
---
2
2
run :
3
- deadline : 1m
3
+ timeout : 1m
4
4
issues-exit-code : 1
5
5
tests : true
6
- skip-dirs :
7
- - vendor$
8
6
9
7
output :
10
- format : colored-line-number
11
8
print-issued-lines : false
9
+ sort-results : true
10
+ formats :
11
+ - format : colored-line-number
12
12
13
13
linters-settings :
14
14
gocognit :
15
15
min-complexity : 10
16
16
17
17
depguard :
18
- list-type : blacklist
19
- include-go-root : false
20
- packages :
21
- - github.com/davecgh/go-spew/spew
18
+ rules :
19
+ main :
20
+ deny :
21
+ - pkg : " github.com/davecgh/go-spew/spew"
22
+ desc : not allowed
22
23
23
24
misspell :
24
25
locale : US
@@ -70,8 +71,6 @@ linters:
70
71
- varcheck
71
72
- varnamelen
72
73
- wastedassign
73
- fast : false
74
-
75
74
76
75
issues :
77
76
exclude-use-default : true
You can’t perform that action at this time.
0 commit comments