trails/.github/workflows
Ullrich Schäfer 7eb2a20700 ci: smoke-test the journal production Docker image
Nothing in CI booted the journal's production image. typecheck / lint /
test / build all run against the source tree (where every file is
present), and the e2e job boots the journal via `react-router-serve` —
not the production `node server.ts` entrypoint. The runtime stage of
apps/journal/Dockerfile copies source files in by name, so a refactor
that adds a file server.ts imports without a matching COPY builds green
everywhere and only crash-loops once deployed (ERR_MODULE_NOT_FOUND).
That has taken prod down more than once: app/lib (8631c8f), app/jobs
(e16bd6d), and serve-static.ts (#554/#555, today's outage).

Add a job that builds the `runtime` stage and actually boots it against
a throwaway Postgres, polling /api/health for a 200. A missing static
OR dynamic import never reaches a healthy boot, so this fails the PR
instead of the deploy. Verified locally: the fixed image goes healthy;
the image with the serve-static.ts COPY removed exits with the exact
ERR_MODULE_NOT_FOUND and the job fails.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 09:37:17 +02:00
..
cd-apps.yml build(deps): bump actions/checkout from 6 to 7 2026-06-21 08:22:41 +00:00
cd-brouter.yml build(deps): bump actions/checkout from 6 to 7 2026-06-21 08:22:41 +00:00
cd-infra.yml build(deps): bump actions/checkout from 6 to 7 2026-06-21 08:22:41 +00:00
cd-staging.yml build(deps): bump actions/checkout from 6 to 7 2026-06-21 08:22:41 +00:00
ci.yml ci: smoke-test the journal production Docker image 2026-06-25 09:37:17 +02:00
dependabot-dedupe.yml build(deps): bump actions/checkout from 6 to 7 2026-06-21 08:22:41 +00:00
disk-maintenance.yml ci: scheduled image prune + staging-deploy disk hygiene 2026-06-07 09:52:49 +02:00
staging-cleanup.yml Fix concurrent preview deploy race: per-PR env files + server flock 2026-05-10 13:03:52 +02:00
update-visual-snapshots.yml build(deps): bump actions/checkout from 6 to 7 2026-06-21 08:22:41 +00:00