add lint check

This commit is contained in:
nyanotech 2025-08-07 02:19:20 -07:00
parent 2f9ff372c5
commit fc1e288567
Signed by: nyanotech
GPG Key ID: 872740637E938731

View File

@ -15,6 +15,15 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Format check
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "Code is not formatted. Run 'go fmt ./...'"
gofmt -s -l .
exit 1
fi
- name: Vet
run: go vet ./...
- name: Build
run: go build -v ./...
- name: Test