mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-21 03:36:35 +00:00
preflight fixes for gh errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user