File tree 3 files changed +15
-12
lines changed
3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Go
1
+ name : Test
2
2
3
3
on :
4
4
push :
@@ -11,15 +11,16 @@ permissions:
11
11
12
12
jobs :
13
13
test :
14
+ name : Test
14
15
strategy :
15
16
matrix :
16
17
os :
17
18
- ubuntu-latest
18
19
- windows-latest
19
20
go-version :
20
- - ' 1.19'
21
21
- ' 1.20'
22
22
- ' 1.21'
23
+ - ' 1.22'
23
24
runs-on : ${{ matrix.os }}
24
25
steps :
25
26
- uses : actions/checkout@v3
@@ -35,14 +36,15 @@ jobs:
35
36
run : go test -trimpath -v ./...
36
37
37
38
lint :
39
+ name : Lint
38
40
runs-on : ubuntu-latest
39
41
steps :
40
42
- uses : actions/checkout@v3
41
43
- name : Set up Go
42
44
uses : actions/setup-go@v4
43
45
with :
44
- go-version : ' 1.21 '
46
+ go-version : ' 1.22 '
45
47
- name : Lint
46
48
uses : golangci/golangci-lint-action@v3
47
49
with :
48
- version : v1.54 .2
50
+ version : v1.57 .2
Original file line number Diff line number Diff line change 1
1
issues :
2
2
max-same-issues : 0
3
- exclude-use-default : 0
3
+ exclude-use-default : false
4
4
exclude :
5
5
- if-return
6
6
exclude-rules :
7
- path : _test\.go
8
- linters :
9
- - dupl
10
- - gosec
7
+ - path : _test\.go
8
+ linters :
9
+ - dupl
10
+ - gosec
11
11
12
12
linters :
13
13
enable :
@@ -60,7 +60,6 @@ linters-settings:
60
60
disabled-checks :
61
61
- paramTypeCombine
62
62
- ptrToRefParam
63
- - sloppyTestFuncName
64
63
65
64
gofumpt :
66
65
module-path : github.com/rliebz/ghost
@@ -71,7 +70,9 @@ linters-settings:
71
70
- G307 # duplicate of errcheck
72
71
73
72
govet :
74
- check-shadowing : true
73
+ enable-all : true
74
+ disable :
75
+ - fieldalignment
75
76
76
77
lll :
77
78
line-length : 100
Original file line number Diff line number Diff line change 9
9
usage : Run static analysis
10
10
description : |
11
11
Run golangci-lint using the project configuration.
12
- run : go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3 run ./...
12
+ run : go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1 run ./...
13
13
14
14
test :
15
15
usage : Run unit tests
You can’t perform that action at this time.
0 commit comments