Skip to content

Commit

Permalink
ci: Add check for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
coolapso committed Oct 19, 2024
1 parent 72eaa7e commit 949429f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ jobs:
- name: Install dependencies
run: go get .

- name: Check formating
run: |
changedFiles=$(go fmt ./...)
if [[ -n $changedFiles ]]; then
echo -e "Follwing files are not formated:\n${changedFiles}"
exit 1
fi
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down

0 comments on commit 949429f

Please sign in to comment.