mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-20 03:11:46 +00:00
b9b8c65e79
* 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
33 lines
701 B
YAML
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
|