CI Pipeline
Responsibility
.github/workflows/ci.yml ("Flaggo CI Pipeline") automates quality checks on
every push and pull_request to main: static analysis (go vet), unit
tests, and compilation of all three binaries.
Trigger and environment
- Triggers:
push/pull_requestonmain. - Runner:
ubuntu-latest. - Go version:
1.27.2(aligned withgo.modand the Dockerfiles). STORE=memoryis set for tests so no Postgres is required.
Steps
- Checkout code (
actions/checkout). - Setup Go with module cache enabled.
go vet ./...go test -v ./...go buildfor./cmd/flaggo,./cmd/flaggo-web,./examples/client(output discarded, compile check only).
Gaps / planned work
- No container image build or publish yet (planned:
docker/build-push-actionto GHCR, SHA-tagged, multi-platform). - No vulnerability scanning (
govulncheck, Trivy) yet. - Actions are pinned by mutable tag (
@v4/@v5), not by SHA. - No top-level
permissions:ortimeout-minutesyet. Seeopenwiki/build/containerization.mdfor the image build plan.
Related
openwiki/build/containerization.mdopenwiki/testing/test-strategy.md