File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 6
6
name : lint
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/setup-go@v3
9
+ - name : Checkout code
10
+ uses : actions/checkout@v4
11
+ - name : Set up Go
12
+ uses : actions/setup-go@v5
10
13
with :
11
- go-version : ' 1.19 '
12
- - uses : actions/checkout@v3
14
+ go-version : ' 1.23 '
15
+ cache : false
13
16
- name : golangci-lint
14
- uses : golangci/golangci-lint-action@v3
17
+ uses : golangci/golangci-lint-action@v6
15
18
with :
16
- version : v1.61.0
17
- args : --timeout=3m
19
+ version : v1.60.3
20
+ args : --timeout=5m
21
+
18
22
test :
23
+ name : Test
19
24
runs-on : ubuntu-latest
20
25
steps :
21
- - name : install Go
22
- uses : actions/setup-go@v2
26
+ - name : Checkout code
27
+ uses : actions/checkout@v4
28
+
29
+ - name : Install Go
30
+ uses : actions/setup-go@v5
23
31
with :
24
32
go-version : 1.23.x
25
- - name : checkout code
26
- uses : actions/checkout@v2
27
- - uses : actions/cache@v2
28
- with :
29
- path : ~/go/pkg/mod
30
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
31
- restore-keys : |
32
- ${{ runner.os }}-go-
33
- - name : golang tests
33
+ - name : Golang tests
34
34
env :
35
35
GO111MODULE : on
36
36
run : |
37
37
go mod download
38
- go test ./...
38
+ go test -p 8 ./...
You can’t perform that action at this time.
0 commit comments