ADR-027: CI/CD
Estado
Accepted — 2026-08-23
Amendment — 2026-08-28: CI en GitHub Actions es solo manual (workflow_dispatch), paridad IVPrior — no corre en push ni pull_request.
Contexto
GitHub Flow (ADR-017). Agentes abren PRs. Hace falta el mismo gate en local y en CI.
Decisión
- GitHub Actions como CI.
- PR obligatorio hacia
master. El workflow CI se dispara manualmente en Actions → CI → Run workflow (no en cada push/PR). - V1 CI: lint, typecheck, unit/integration vía
make check(mismo contrato que local). - No deploy automático a producción en el primer scaffold. Deploy = paso explícito (ADR-030).
- Ambientes:
local·staging(cuando exista host) ·production. - Secrets solo en GitHub Environments / host (ADR-015).
- Pre-push Husky (
scripts/pre-push-gate.sh) sigue siendo el gate local antes degit push; CI remoto es opt-in manual.
Alternativas
GitLab CI / Circle: se descartan (el repo ya es GitHub).
Consecuencias
.github/workflows/ci.ymlllamamake check, no un script paralelo.- Merge sin CI verde en GitHub es posible; correr CI manualmente antes de merge cuando el cambio toca producto.