Skip to content

Commit

Permalink
fix gofmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed May 30, 2023
1 parent a4e9b2e commit 92a60a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ jobs:
- name: lint
run: |
go vet
gofmt -w *.go && git diff --exit-code
GOFMT_OUT=$(gofmt -l *.go)
if [ -n "$GOFMT_OUT" ]; then
echo $GOFMT_OUT
exit 1
fi

0 comments on commit 92a60a5

Please sign in to comment.