Add gofmt output to CI test before calling test -z

We use a call to test -z together with go fmt because it doesn't output
a non-zero exit status (triggering CI test failure). However, we lose
useful debugging output from the go fmt call because test -z swallows
it. This adds very verbose formatting output to the CI test.
This commit is contained in:
Cecylia Bocovich 2022-11-17 11:07:48 -05:00
parent e851861e68
commit 115ba6a745
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -60,6 +60,7 @@ variables:
lbzip2
.go-test: &go-test
- gofmt -d .
- test -z "$(go fmt ./...)"
- go vet ./...
- go test -v -race ./...