Skip to content

Commit 6727710

Browse files
authored
Merge pull request #21 from hashicorp/kmoe-fix-gha
Fix GitHub Actions config
2 parents c2067f5 + d82c421 commit 6727710

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@v2
2424
with:
25-
go-version: '1.16'
25+
go-version: '1.17'
2626
id: go
2727

2828
- name: Check out code into the Go module directory
2929
uses: actions/checkout@v2
3030

3131
- name: Go fmt
3232
run: |
33-
make fmt
33+
# exit 1 if any files need go fmt
34+
test -z $(gofmt -s -l .)
3435
3536
- name: Go vet
3637
run: |
37-
make vet
38+
go vet ./...
3839
3940
- name: Build
4041
run: |
@@ -55,14 +56,13 @@ jobs:
5556
- name: Set up Go
5657
uses: actions/setup-go@v2
5758
with:
58-
go-version: '1.16'
59+
go-version: '1.17'
5960
id: go
6061

6162
- name: Check out code into the Go module directory
6263
uses: actions/checkout@v2
6364

6465
- name: Go tests
6566
timeout-minutes: 10
66-
env:
6767
run: |
6868
go test -v ./...

0 commit comments

Comments
 (0)