Add a root Makefile (lint/build/unit/smoke/ci) as the single source of truth for the checks, and have each Gitea Actions job call the matching make target so local and CI cannot drift. `make ci` runs the full pipeline locally — the interim gate while no runner is registered. The smoke target auto-points DOCKER_HOST at the rootless Podman socket when present (and DOCKER_HOST is unset), leaving Docker/CI hosts alone. Document `make ci` and the Podman prerequisites in docs/runbooks/ci.md. Verified: `make ci` is green locally (lint, build, unit, container smoke). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# Self-hosted runner — see docs/runbooks/ci.md for the runner setup.
|
|
# `uses:` are absolute, tag-pinned URLs (CLAUDE.md §8.7 / §15).
|
|
|
|
# Each job calls a `make` target — the same one developers run locally
|
|
# (`make ci`). The Makefile is the single source of truth; see docs/runbooks/ci.md.
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: respellion-linux
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '10.0.x'
|
|
- run: make lint
|
|
|
|
build:
|
|
runs-on: respellion-linux
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '10.0.x'
|
|
- run: make build
|
|
|
|
unit:
|
|
runs-on: respellion-linux
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '10.0.x'
|
|
- run: make unit
|
|
|
|
compose-smoke:
|
|
runs-on: respellion-linux
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- run: make smoke
|