Skip to content

Commit

Permalink
.github: show diff when gofmt check fails
Browse files Browse the repository at this point in the history
Rather than just failing the check, also show the diff.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser authored and rolinh committed Feb 22, 2021
1 parent 1e2de87 commit 49b09df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v2
- name: Format
if: matrix.go-version >= '1.16'
run: test -z $(gofmt -l .)
run: diff -u <(echo -n) <(gofmt -d .)
- name: Build
run: go build
- name: Vet
Expand Down

0 comments on commit 49b09df

Please sign in to comment.