Skip to content

Commit

Permalink
[BEAM-14012] Add go fmt to Github Actions (#16978)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccluskey authored Mar 1, 2022
1 parent f2db6f1 commit f9084f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f9084f1

Please sign in to comment.