@@ -22,12 +22,11 @@ jobs:
22
22
runs-on : ubuntu-latest
23
23
steps :
24
24
- name : Checkout code
25
- uses : actions/checkout@v2
26
- - name : Run golangci-lint
27
- uses : golangci/golangci-lint-action@v2
25
+ uses : actions/checkout@v3
26
+ - name : Install Go
27
+ uses : actions/setup-go@v4
28
28
with :
29
- version : latest
30
- args : --timeout=30m
29
+ go-version : 1.20.x
31
30
- name : Check Go module tidiness
32
31
shell : bash
33
32
run : |
@@ -39,21 +38,26 @@ jobs:
39
38
echo "Run 'go mod tidy' and commit them"
40
39
exit 1
41
40
fi
41
+ - name : Run golangci-lint
42
+ uses : golangci/golangci-lint-action@v3
43
+ with :
44
+ version : latest
45
+ args : --timeout=30m
42
46
43
47
test :
44
48
name : Test
45
49
strategy :
46
50
matrix :
47
- go-version : [ 1.16 .x, 1.17 .x, 1.18 .x, 1.19 .x ]
51
+ go-version : [ 1.17 .x, 1.18 .x, 1.19 .x, 1.20 .x ]
48
52
platform : [ ubuntu-latest, macos-latest, windows-latest ]
49
53
runs-on : ${{ matrix.platform }}
50
54
steps :
51
55
- name : Install Go
52
- uses : actions/setup-go@v2
56
+ uses : actions/setup-go@v4
53
57
with :
54
58
go-version : ${{ matrix.go-version }}
55
59
- name : Checkout code
56
- uses : actions/checkout@v2
60
+ uses : actions/checkout@v3
57
61
- name : Run tests with coverage
58
62
run : go test -v -race -coverprofile=coverage -covermode=atomic ./...
59
63
- name : Upload coverage report to Codecov
0 commit comments