preflight fixes for gh errors

This commit is contained in:
Ben Duncan
2026-02-14 09:23:42 +10:00
parent 3095a90090
commit febeae8c47
4 changed files with 53 additions and 34 deletions
+7 -17
View File
@@ -36,10 +36,10 @@ jobs:
go-version-file: "go.mod"
- name: Build Hive
run: make go_build
run: make build
- name: Run Tests
run: LOG_IGNORE=1 go test -v -timeout 120s ./...
run: make test
lint_and_security:
name: Hive Lint and Security
@@ -55,21 +55,11 @@ jobs:
cache-dependency-path: "go.sum"
go-version-file: "go.mod"
- name: Check gofmt
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go files are not formatted. Run 'gofmt -w .' to fix them."
exit 1
fi
- name: Check Format
run: make check-format
- name: Go Vet
run: go vet ./...
run: make vet
- name: Go Vulnerability Check
run: go tool govulncheck ./...
- name: Gosec Security Scanner
run: go tool gosec -exclude=G204,G304,G402 -exclude-generated -exclude-dir=cmd ./...
- name: Static Check
run: go tool staticcheck -checks="all,-ST1000,-ST1003,-ST1016,-ST1020,-ST1021,-ST1022,-SA1019,-SA9005" ./...
- name: Security Checks
run: make security-check