72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
go-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.22"
|
|
cache: true
|
|
|
|
- name: Run package-level Go tests (cmd/server + internal/...)
|
|
run: go test ./...
|
|
- name: Note script test coverage boundary
|
|
run: |
|
|
echo "go test ./... only covers package-based Go code"
|
|
echo "script-level coverage runs in the scripts-regression job"
|
|
|
|
scripts-regression:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.22"
|
|
cache: true
|
|
|
|
- name: Run targeted script importer tests
|
|
run: bash scripts/test_importers.sh
|
|
|
|
- name: Run importer smoke gate
|
|
run: bash scripts/importer_smoke_gate_test.sh
|
|
|
|
- name: Run pipeline runtime alignment gate
|
|
run: bash scripts/pipeline_runtime_alignment_test.sh
|
|
|
|
frontend-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
|
|
- name: Install frontend dependencies
|
|
working-directory: frontend
|
|
run: npm ci
|
|
|
|
- name: Build frontend
|
|
working-directory: frontend
|
|
run: npm run build
|
|
|
|
docker-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build container image
|
|
run: docker build -t llm-intelligence:ci .
|