GitHub actions: also exit early if gofmt reports syntax errors
This commit is contained in:
parent
5573c4dde7
commit
ee17db29b6
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
||||
|
||||
- name: Ensure all files were formatted as per gofmt
|
||||
run: |
|
||||
[ "$(gofmt -l $(find . -name '*.go'))" = "" ]
|
||||
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]
|
||||
|
||||
- name: Go Vet
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user