Skip to content

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 ef64b28
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 following diff: ###\n"
gofmt -s -d .
exit 1
fi
- name: Test Project
run: |
make test
Expand Down

0 comments on commit ef64b28

Please sign in to comment.