GitHub actions: also exit early if gofmt reports syntax errors

This commit is contained in:
Michael Stapelberg 2020-08-01 09:46:19 +02:00
parent 5573c4dde7
commit ee17db29b6

View File

@ -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: |