9cdf4b2472
Phase 1 of foreman: initialize the Go module, project layout, and core infrastructure. Includes env-based configuration (FOREMAN_* namespace), SQLite-backed durable job queue with WAL mode via modernc.org/sqlite, stdlib HTTP server with /healthz and optional bearer-token auth middleware, subcommand dispatch (serve + stubs), Gitea CI workflow, multi-stage distroless Dockerfile, and comprehensive tests for all packages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
645 B
YAML
27 lines
645 B
YAML
name: CI
|
|
on:
|
|
push: { branches: ["*"] }
|
|
pull_request: { branches: ["*"] }
|
|
jobs:
|
|
build:
|
|
name: Build & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with: { go-version-file: "go.mod" }
|
|
- run: go mod download
|
|
- run: go build ./...
|
|
- run: go vet ./...
|
|
- run: go test -race -count=1 ./...
|
|
tidy:
|
|
name: Tidy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with: { go-version-file: "go.mod" }
|
|
- run: |
|
|
go mod tidy
|
|
git diff --exit-code go.mod go.sum
|