Files
q-edit/docs/adr/0008-self-hosted-ci.md
2025-09-02 21:04:17 -04:00

15 lines
695 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ADR 0008 — Self-hosted CI with Gitea Actions
**Decision**
- Add `.gitea/workflows/ci.yml` that runs on `self-hosted` runners (no Docker).
- Avoid marketplace actions; rely on the runner checkout and raw shell steps.
- Install Node via official tarball only when not preinstalled.
- Steps: `npm ci` → lint (if present) → typecheck (if `tsconfig.json`) → build (if present) → tests with coverage.
- Enforce coverage thresholds using `scripts/ci-check-coverage.mjs` (defaults: L70 / B70 / F50 / S70).
**Consequences**
- Requires outbound HTTPS to nodejs.org for Node tarball when Node isnt preinstalled.
- Artifact upload omitted; can be added with a custom uploader if desired.