Skip to content

Commit b59846c

Browse files
committed
gofmt: Log the gofmt output when it fails in CI
Signed-off-by: Chris Kyrouac <[email protected]>
1 parent 47a710d commit b59846c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
make lint
3030
- name: gofmt
3131
run: |
32-
test -z $(gofmt -l .)
32+
if test -z $(gofmt -l .); then exit 0; else gofmt -d -e . && exit 1; fi

0 commit comments

Comments
 (0)