File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -12,27 +12,19 @@ jobs:
12
12
os : [ubuntu-latest, macos-latest, windows-latest]
13
13
runs-on : ${{ matrix.os }}
14
14
steps :
15
- - name : Install Go
16
- uses : actions/setup-go@v3
17
- with :
18
- go-version : ${{ matrix.go-version }}
19
-
20
15
- name : Checkout code
21
- uses : actions/checkout@v3
16
+ uses : actions/checkout@v4
22
17
23
- - name : Restore Cache
24
- uses : actions/cache@v3
18
+ - name : Install Go
19
+ uses : actions/setup-go@v5
25
20
with :
26
- path : ~/go/pkg/mod
27
- key : ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
28
- restore-keys : |
29
- ${{ runner.os }}-v1-go-
21
+ go-version : ${{ matrix.go-version }}
30
22
31
23
- name : Test
32
24
run : go test -race -covermode=atomic -coverprofile="profile.cov" ./...
33
25
34
26
- name : Send Coverage
35
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21 .x'
27
+ if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22 .x'
36
28
uses : shogo82148/actions-goveralls@v1
37
29
with :
38
30
path-to-profile : profile.cov
@@ -41,11 +33,11 @@ jobs:
41
33
name : lint
42
34
runs-on : ubuntu-latest
43
35
steps :
44
- - uses : actions/setup-go@v3
36
+ - uses : actions/checkout@v4
37
+ - uses : actions/setup-go@v5
45
38
with :
46
39
go-version : 1.22.x
47
- - uses : actions/checkout@v3
48
40
- name : golangci-lint
49
- uses : golangci/golangci-lint-action@v3
41
+ uses : golangci/golangci-lint-action@v4
50
42
with :
51
43
version : latest
You can’t perform that action at this time.
0 commit comments