From ee17db29b6bf4c32a5274cf8b658be8ab584a8ae Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 1 Aug 2020 09:46:19 +0200 Subject: [PATCH] GitHub actions: also exit early if gofmt reports syntax errors --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 98ba41a..1522dee 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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: |