mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-20 11:21:49 +00:00
db45c028be
- Add Phase 7b to single-node E2E: stop instance, modify type (nano → xlarge), start, SSH in, verify vCPU count (nproc) and memory (/proc/meminfo) match the new instance type - Add Phase 8q negative test: modify-instance-attribute on running instance expects InvalidInstanceID.NotFound - Improve key service integration test coverage (mulga-580) - Pin viperblock/predastore CI checkout to main (fixes feature branch CI) - Update TEST_COVERAGE.md
134 lines
3.0 KiB
YAML
134 lines
3.0 KiB
YAML
name: Hive Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
paths:
|
|
- "**/*.go"
|
|
- go.mod
|
|
- go.sum
|
|
- Makefile
|
|
- .github/workflows/hive.yml
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Hive Build and Test
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout Hive
|
|
uses: actions/checkout@v6
|
|
with:
|
|
path: hive
|
|
fetch-depth: 2
|
|
|
|
- name: Checkout Viperblock
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: mulgadc/viperblock
|
|
path: viperblock
|
|
|
|
- name: Checkout Predastore
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: mulgadc/predastore
|
|
path: predastore
|
|
|
|
- name: Setup Go Workspace
|
|
run: go work init ./hive ./viperblock ./predastore
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
cache-dependency-path: "hive/go.sum"
|
|
go-version-file: "hive/go.mod"
|
|
|
|
- name: Build Hive
|
|
run: make -C hive build
|
|
|
|
- name: Run Tests with Coverage
|
|
run: make -C hive test-cover
|
|
|
|
- name: Check Diff Coverage
|
|
run: cd hive && scripts/diff-coverage.sh coverage.out --base HEAD~1
|
|
|
|
race_detection:
|
|
name: Hive Race Detection
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout Hive
|
|
uses: actions/checkout@v6
|
|
with:
|
|
path: hive
|
|
|
|
- name: Checkout Viperblock
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: mulgadc/viperblock
|
|
path: viperblock
|
|
|
|
- name: Checkout Predastore
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: mulgadc/predastore
|
|
path: predastore
|
|
|
|
- name: Setup Go Workspace
|
|
run: go work init ./hive ./viperblock ./predastore
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
cache-dependency-path: "hive/go.sum"
|
|
go-version-file: "hive/go.mod"
|
|
|
|
- name: Run Tests with Race Detector
|
|
run: make -C hive test-race
|
|
|
|
lint_and_security:
|
|
name: Hive Lint and Security
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout Hive
|
|
uses: actions/checkout@v6
|
|
with:
|
|
path: hive
|
|
|
|
- name: Checkout Viperblock
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: mulgadc/viperblock
|
|
path: viperblock
|
|
|
|
- name: Checkout Predastore
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: mulgadc/predastore
|
|
path: predastore
|
|
|
|
- name: Setup Go Workspace
|
|
run: go work init ./hive ./viperblock ./predastore
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
cache-dependency-path: "hive/go.sum"
|
|
go-version-file: "hive/go.mod"
|
|
|
|
- name: Check Format
|
|
run: make -C hive check-format
|
|
|
|
- name: Check Modernize
|
|
run: make -C hive check-modernize
|
|
|
|
- name: Go Vet
|
|
run: make -C hive vet
|
|
|
|
- name: Security Checks
|
|
run: make -C hive security-check
|