Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Add formatting check to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
der-eismann committed Aug 2, 2023
1 parent 34899fb commit a3fc8c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
go install golang.org/x/lint/golint@latest
- name: Checkout code
uses: actions/checkout@v3
- name: Check Formatting
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "Go formatting is off, please execute 'gofmt -w -s .' - see diff:"
gofmt -s -d .
exit 1
fi
- name: Test Project
run: |
make test
Expand Down

0 comments on commit a3fc8c2

Please sign in to comment.