Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
2.0 KiB
2.0 KiB
created, title, area, resolves_phase, files
| created | title | area | resolves_phase | files | |||
|---|---|---|---|---|---|---|---|
| 2026-06-10T00:48:16.555Z | Gitea CI — full regression on PR to main + build/publish Docker image | tooling | 8 |
|
Problem
The repo is committed against a self-hosted Gitea instance with a registered
Actions runner, but there is no CI yet (no .gitea/workflows/ or .github/workflows/).
Two things should run automatically:
- Full regression testing on every PR targeting
main— gate the merge. - Build the app's Docker image and publish it to the Gitea container registry.
Open context / decisions to make when picking this up:
- Test scope: "full regression" = lint + typecheck + unit + the API integration
tests. Those integration tests need a real MariaDB (see
api-integration-test-db) — the workflow must spin up a MariaDB service
container, bind it, and set
DB_HOST=127.0.0.1+.envcreds. The PWA build/test also needs to run. - Monorepo: pnpm workspace (
apps/api,apps/pwa, shared). Cache the pnpm store. - Docker images: only
apps/api/Dockerfileexists today — there is no PWA Dockerfile yet. Decide whether to publish one image (API) or also build/serve the PWA. Tag scheme + when to publish (only on merge tomain? on tags? per-PR?). - Registry auth: push to the Gitea registry using the runner's
GITHUB_TOKEN/ Gitea-provided token or a dedicated package-write token. - Gitea Actions are GitHub-Actions-compatible syntax but run on the self-hosted runner — confirm runner labels and available images.
Solution
TBD — likely a .gitea/workflows/ci.yml:
on: pull_request(tomain) → job: install (pnpm), lint, typecheck, unit tests, API integration tests against amariadbservice container, PWA build.on: pushtomain(or tag) → job:docker buildapps/api/Dockerfile, login to Gitea registry, push tagged image.
Verify Gitea Actions enablement + runner is healthy before authoring. Decide image matrix (API only vs. API+PWA) and tag policy first.