From 115ba6a745b877904f5f4b6a4c852c3f2d5a87b8 Mon Sep 17 00:00:00 2001 From: Cecylia Bocovich Date: Thu, 17 Nov 2022 11:07:48 -0500 Subject: [PATCH] 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. --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7db34d5..178c5a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,6 +60,7 @@ variables: lbzip2 .go-test: &go-test + - gofmt -d . - test -z "$(go fmt ./...)" - go vet ./... - go test -v -race ./...