Skip to content

Commit

Permalink
Add go fmt to build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewab committed Feb 12, 2024
1 parent 7e7c38b commit fba440c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,11 @@ jobs:
- name: Get dependencies
run: go mod download

- name: go fmt
run: |
go fmt
git diff --exit-code || \
(echo; echo "Unexpected difference. Run 'go fmt' command and commit."; exit 1)
- name: Run unit tests
run: go test -v -cover ./...

0 comments on commit fba440c

Please sign in to comment.