File tree 1 file changed +22
-7
lines changed
1 file changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -17,31 +17,46 @@ jobs:
17
17
name : Test
18
18
runs-on : ubuntu-latest
19
19
20
+ strategy :
21
+ matrix :
22
+ go :
23
+ - " 1.18"
24
+ - " 1.19"
25
+ - " 1.20"
26
+ - " 1.21"
27
+ - " 1.22"
28
+ - " 1.23"
29
+
20
30
steps :
21
31
- name : Checkout
22
- uses : actions/checkout@v3
32
+ uses : actions/checkout@v4
23
33
24
34
- name : Setup Go
25
- uses : actions/setup-go@v3
35
+ uses : actions/setup-go@v5
26
36
with :
27
- go-version-file : go.mod
37
+ go-version : ${{ matrix.go }}
28
38
check-latest : true
29
39
30
40
- name : Build
31
41
run : go build -v ./...
32
42
33
43
- name : Test
34
- run : go test -v -coverprofile=cover.out -shuffle on ./...
44
+ run : go test -v -coverprofile=coverage.txt -shuffle on ./...
35
45
36
46
lint :
37
47
name : Lint
38
48
runs-on : ubuntu-latest
39
-
40
49
steps :
41
50
- name : Checkout
42
- uses : actions/checkout@v3
51
+ uses : actions/checkout@v4
52
+
53
+ - name : Setup Go
54
+ uses : actions/setup-go@v5
55
+ with :
56
+ go-version-file : go.mod
57
+ check-latest : true
43
58
44
59
- name : Lint
45
- uses : golangci/golangci-lint-action@v2
60
+ uses : golangci/golangci-lint-action@v6
46
61
with :
47
62
version : latest
You can’t perform that action at this time.
0 commit comments