GitHub actions: also exit early if gofmt reports syntax errors
This commit is contained in:
parent
38d36b6619
commit
f7c3cb7e0e
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -15,7 +15,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: run tests
|
||||
run: go test ./...
|
||||
|
Loading…
x
Reference in New Issue
Block a user