Add gofmt linting to ci

This commit is contained in:
Benson Wong
2025-08-07 20:19:56 -07:00
parent 10569ed546
commit 5c381e4b30
2 changed files with 8 additions and 1 deletions

View File

@@ -22,6 +22,13 @@ jobs:
with:
go-version: '1.23'
# Only run in this linux based runner
- name: Check Formatting
run: |
if [ "$(gofmt -l . | grep -v 'event/.*_test.go' | wc -l)" -gt 0 ]; then
gofmt -l . | grep -v 'event/.*_test.go'
exit 1
fi
# cache simple-responder to save the build time
- name: Restore Simple Responder
id: restore-simple-responder