diff --git a/wercker.yml b/wercker.yml index 9a74ba87e..7c17214b7 100644 --- a/wercker.yml +++ b/wercker.yml @@ -7,6 +7,13 @@ build: # at the right place in the workspace tree - setup-go-workspace + # Test go formatting + - script: + name: gofmt + code: | + gofmt -l *.go */*.go */*/*.go + test -z "$(gofmt -l *.go */*.go */*/*.go)" + # Gets the dependencies - script: name: go get