GitHub actions: also exit early if gofmt reports syntax errors

This commit is contained in:
Michael Stapelberg 2020-08-01 09:48:00 +02:00
parent 38d36b6619
commit f7c3cb7e0e

View File

@ -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 ./...