chore: add go vet step to CI workflow before tests

Add a `go vet ./...` step that runs before `go test -race ./...` in the
CI pipeline. This catches format string errors, unreachable code, and
other static analysis issues early.

Verified locally: `go vet ./...` exits 0 with no warnings.

Closes leeworks-agents/gitea-mobile#154

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
agent-company
2026-03-28 23:06:43 +00:00
parent c790a7236c
commit c267bc86a8
+3
View File
@@ -15,6 +15,9 @@ jobs:
with: with:
go-version: '1.22' go-version: '1.22'
- name: Vet
run: go vet ./...
- name: Run tests - name: Run tests
run: go test -race ./... run: go test -race ./...