File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,20 @@ jobs:
22
22
- name : Set up Go
23
23
uses : actions/setup-go@v2
24
24
with :
25
- go-version : ' 1.16 '
25
+ go-version : ' 1.17 '
26
26
id : go
27
27
28
28
- name : Check out code into the Go module directory
29
29
uses : actions/checkout@v2
30
30
31
31
- name : Go fmt
32
32
run : |
33
- make fmt
33
+ # exit 1 if any files need go fmt
34
+ test -z $(gofmt -s -l .)
34
35
35
36
- name : Go vet
36
37
run : |
37
- make vet
38
+ go vet ./...
38
39
39
40
- name : Build
40
41
run : |
@@ -55,14 +56,13 @@ jobs:
55
56
- name : Set up Go
56
57
uses : actions/setup-go@v2
57
58
with :
58
- go-version : ' 1.16 '
59
+ go-version : ' 1.17 '
59
60
id : go
60
61
61
62
- name : Check out code into the Go module directory
62
63
uses : actions/checkout@v2
63
64
64
65
- name : Go tests
65
66
timeout-minutes : 10
66
- env :
67
67
run : |
68
68
go test -v ./...
You can’t perform that action at this time.
0 commit comments