@@ -20,51 +20,37 @@ jobs:
20
20
matrix :
21
21
go-version : [1.18.x, 1.x]
22
22
steps :
23
- - uses : actions/checkout@v3
24
- with :
25
- fetch-depth : 1
26
- - uses : WillAbides/setup-go-faster@v1
27
- with :
28
- go-version : ${{ matrix.go-version }}
23
+ - uses : actions/checkout@v4
29
24
30
- - uses : actions/cache@v3
25
+ - name : Setup Go ${{ matrix.go-version }}
26
+ uses : actions/setup-go@v5
31
27
with :
32
- # In order:
33
- # * Module download cache
34
- # * Build cache (Linux)
35
- # * Build cache (Mac)
36
- # * Build cache (Windows)
37
- path : |
38
- ~/go/pkg/mod
39
- ~/.cache/go-build
40
- ~/Library/Caches/go-build
41
- %LocalAppData%\go-build
42
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43
- restore-keys : |
44
- ${{ runner.os }}-go-
28
+ go-version : ${{ matrix.go-version }}
45
29
46
30
- name : Test with race and coverage
47
31
run : |
48
32
go test -race -coverprofile=coverage.out -covermode=atomic
49
33
go tool cover -func=coverage.out
50
34
51
- - uses : codecov/codecov-action@v3
35
+ - uses : codecov/codecov-action@v4
52
36
with :
53
37
files : ./coverage.out
38
+ token : ${{ secrets.CODECOV_TOKEN }} # required
54
39
55
40
lint :
56
41
name : " Run static analysis"
57
42
runs-on : " ubuntu-latest"
58
43
steps :
59
- - uses : actions/checkout@v3
60
- with :
61
- fetch-depth : 1
62
- - uses : WillAbides /setup-go-faster@v1
44
+ - uses : actions/checkout@v4
45
+
46
+ - name : Setup Go ${{ matrix.go-version }}
47
+ uses : actions /setup-go@v5
63
48
with :
64
49
go-version : " 1.x"
65
50
66
51
- run : " go vet ./..."
67
52
68
- - uses : dominikh/staticcheck-action@v1
53
+ - name : Staticcheck
54
+
69
55
with :
70
- version : " 2022.1.3 "
56
+ install-go : false
0 commit comments