Files
spinifex/.github/workflows/hive.yml
T
Julian Sommer b9b8c65e79 (fix) Linter fixes
* Fix go vet mutex copy issues and remove report files from git

* remove redundant nil checks (len of nil slice is 0)

* handle error

* add missing error handling

* run modernize to change interface{} to any

* run other modernise commands

* use crypto instead of rand.Intn
2026-01-06 14:20:56 +11:00

33 lines
701 B
YAML

name: Build and Test Hive
on:
push:
branches: [ main ]
paths: ["hive/**", ".github/workflows/**"]
pull_request:
workflow_dispatch:
jobs:
hive_test_and_push:
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: golang-govulncheck-action
uses: golang/govulncheck-action@v1.0.4
with:
repo-checkout: false
# - name: Security reports
# run: make security