Files
spinifex/.github/workflows/hive.yml
T
2026-01-16 05:34:51 +00:00

46 lines
1.1 KiB
YAML

name: Build and Test Hive
on:
push:
branches: [ main ]
paths: ["hive/**", ".github/workflows/**", "go.mod", "go.sum"]
pull_request:
workflow_dispatch:
jobs:
hive_build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache-dependency-path: "go.sum"
- name: Run Tests
run: LOG_IGNORE=1 go test -v -timeout 120s ./...
- name: Go Vet
run: go vet ./...
- name: Static Check
uses: dominikh/staticcheck-action@v1
with:
version: 2025.1.1
install-go: false
checks: "all,-ST1000,-ST1003,-ST1016,-ST1020,-ST1021,-ST1022,-SA1019,-SA9005"
- name: Go Vulnerability Check
uses: golang/govulncheck-action@v1
with:
repo-checkout: false
# - name: Gosec Security Scanner
# run: |
# go install github.com/securego/gosec/v2/cmd/gosec@latest
# gosec -exclude-generated ./...