Skip to content

Commit 78596d8

Browse files
authored
Merge pull request #45 from ckyrouac/fmt-log
gofmt: Log the gofmt output when it fails in CI
2 parents 47a710d + b59846c commit 78596d8

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)