24
24
runs-on : ${{ matrix.platform }}
25
25
steps :
26
26
- name : Install Go
27
- uses : actions/setup-go@v2
27
+ uses : actions/setup-go@v5
28
28
with :
29
29
go-version : ${{ matrix.go-version }}
30
30
@@ -34,26 +34,15 @@ jobs:
34
34
git config --global core.eol lf
35
35
36
36
- name : Checkout code
37
- uses : actions/checkout@v2
37
+ uses : actions/checkout@v4
38
38
with :
39
39
fetch-depth : 1
40
40
41
41
- name : Cache-Go
42
- uses : actions/cache@v1
42
+ uses : actions/cache@v4
43
43
with :
44
- # In order:
45
- # * Module download cache
46
- # * Build cache (Linux)
47
- # * Build cache (Mac)
48
- # * Build cache (Windows)
49
- path : |
50
- ~/go/pkg/mod
51
- ~/.cache/go-build
52
- ~/Library/Caches/go-build
53
- '%LocalAppData%\go-build'
54
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
55
- restore-keys : |
56
- ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44
+ go-version : ${{ matrix.go-version }}
45
+ cache : true
57
46
58
47
- name : Install Linux packages
59
48
if : matrix.platform == 'ubuntu-latest'
@@ -93,11 +82,11 @@ jobs:
93
82
run : |
94
83
go run ./ci/run-tests.go $TAGS -race
95
84
- name : static-check
96
- uses : dominikh/staticcheck-action@v1.2.0
85
+ uses : dominikh/staticcheck-action@v1
97
86
with :
98
87
install-go : false
99
88
cache-key : ${{ matrix.platform }}
100
- version : " 2022 .1"
89
+ version : " 2025 .1"
101
90
- name : Upload-Coverage
102
91
if : matrix.platform == 'ubuntu-latest'
103
- uses : codecov/codecov-action@v1
92
+ uses : codecov/codecov-action@v3
0 commit comments