Skip to content

Commit

Permalink
ci: add gofmt check in lint workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Saurabh Kumar Singh <[email protected]>
  • Loading branch information
singh1203 committed Jan 29, 2025
1 parent b709be7 commit 6a0c4c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
go-version: '1.23'
cache: true
cache-dependency-path: go.sum
- name: Run gofmt
run: |
FILES=$(gofmt -l .)
if [ -n "$FILES" ]; then
echo "$FILES"
exit 1
fi
- name: Install pre-commit
run: |
python -m pip install pre-commit
Expand Down

0 comments on commit 6a0c4c4

Please sign in to comment.