Files
nmon/.github/workflows/ci.yml

47 lines
1.3 KiB
YAML

name: ci
on: [push, pull_request]
jobs:
lint:
# Hard rule (docs/MAINTAINABILITY.md): any finding fails the build.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with: { go-version: stable }
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: cd web && npm ci
- run: make lint
test:
strategy:
matrix:
arch: [ubuntu-latest, ubuntu-24.04-arm]
runs-on: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/setup-go@v5
with: { go-version: stable }
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: make web
- run: make vet test
- run: make test-integration
- run: make test-v6only
- run: make build && file nmon | grep -q 'statically linked'
postgres:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with: { go-version: stable }
- run: make test-pg
openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/setup-go@v5
with: { go-version: stable }
- run: ./scripts/openapi-check.sh