File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ jobs:
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- go : ["1.18.x ", "1.19.x ", "1.20.x "]
16
+ go : ["1.19 ", "1.20 ", "1.21 "]
17
17
steps :
18
18
- name : Checkout
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
- name : Setup Go
21
21
uses : actions/setup-go@v4
22
22
with :
23
23
go-version : " ${{ matrix.go }}"
24
24
check-latest : true
25
- cache : true
26
25
- name : Check Go code formatting
27
26
run : |
28
27
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
34
33
run : |
35
34
go install github.com/mfridman/tparse@latest
36
35
go vet ./...
37
- go test -v -race -count=1 -json -coverpkg=$(go list ./...) ./... | tee output.json | tparse -follow -notests || true
36
+ go test -v -race -count=1 -json -cover ./... | tee output.json | tparse -follow -notests || true
38
37
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
39
38
go build ./...
40
39
coverage :
Original file line number Diff line number Diff line change @@ -10,13 +10,12 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Checkout code
13
- uses : actions/checkout@v3
13
+ uses : actions/checkout@v4
14
14
- name : Setup Go
15
15
uses : actions/setup-go@v4
16
16
with :
17
- go-version : " 1.20.x "
17
+ go-version : " 1.21 "
18
18
check-latest : true
19
- cache : true
20
19
- name : golangci-lint
21
20
uses : golangci/golangci-lint-action@v3
22
21
with :
You can’t perform that action at this time.
0 commit comments