diff --git a/.github/workflows/go_tests.yml b/.github/workflows/go_tests.yml index f58bfcc8a8a3..b70ec8141049 100644 --- a/.github/workflows/go_tests.yml +++ b/.github/workflows/go_tests.yml @@ -49,5 +49,7 @@ jobs: flags: go files: ./sdks/go/pkg/coverage.txt name: go-unittests + - name: Run fmt + run: cd sdks/go/pkg/beam && go fmt ./...; git diff-index --quiet HEAD || (echo "Run go fmt before checking in changes" && exit 1) - name: Run vet - run: cd sdks/go/pkg/beam && go vet --copylocks=false --unsafeptr=false ./... + run: cd sdks/go/pkg/beam && go vet --copylocks=false --unsafeptr=false ./... || (echo "Run go vet and fix warnings before checking in changes" && exit 1)