fix: copy serve.ts into the Docker build stage
The image build ran the tests without serve.ts present, so the server the tests spawn never started and the hook stalled until it timed out. The runtime stage would have failed on the same missing file immediately after. The test now bails the moment the process exits and reports its stderr, so this shows up as "serve.ts exited with 1 before listening" in 53ms rather than an unexplained hook timeout after five seconds. serve.ts is also in tsconfig's include now — it was outside it, so a type error in the file that serves the app would only have surfaced at runtime. Adding it immediately caught one in the test. Verified by replaying the build stage against exactly the copied file set. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
fd1111017f
commit
3bab95acd5
@@ -153,8 +153,14 @@ so iteration never re-fetches. Every event links back to its source.
|
||||
|
||||
Both `.github/workflows/ci.yml` and `.gitlab-ci.yml` run the same gates on every push — typecheck,
|
||||
tests, and a feed sanity check — then build and publish a container image from the default branch.
|
||||
GitHub Actions additionally deploys to Pages, enabling it on first run. Pages is unavailable for
|
||||
private repositories on the free plan — delete the `pages` job if that applies.
|
||||
GitHub Actions can also deploy to Pages, but that needs two one-time steps it cannot do for itself —
|
||||
the default `GITHUB_TOKEN` is not allowed to create a Pages site:
|
||||
|
||||
1. **Settings → Pages → Source: GitHub Actions.**
|
||||
2. **Settings → Secrets and variables → Actions → Variables:** add `DEPLOY_PAGES` = `true`.
|
||||
|
||||
Until then the `pages` job is skipped and the pipeline stays green. Pages is unavailable for private
|
||||
repositories on the free plan.
|
||||
|
||||
The feed job fails if the event count collapses. A source that quietly stops yielding events is the
|
||||
failure mode a parser-only pipeline is most prone to, and nothing else would surface it. Everything
|
||||
|
||||
Reference in New Issue
Block a user