feat(ci): Add check to ensure go fmt has been ran (#43)

This commit is contained in:
Robert Jackson 2025-06-25 14:31:44 -05:00 • committed by GitHub
commit 057f525da2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,8 +8,25 @@ on:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
- name: Check out code
uses: actions/checkout@v4
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "The following files are not properly formatted:"
echo "$unformatted"
exit 1
fi
echo "All Go files are properly formatted"
test:
runs-on: ubuntu-latest
strategy: