ci: unit+build job and integration job (e2e vs production server)#11
Merged
Conversation
…rver) Implements docs/07 stages 1-2 as one workflow: - unit job: pnpm install (frozen lockfile), prisma generate, vitest, build - integration job: postgres:16 service container -> migrate deploy -> pnpm build -> node server.js (ORIGIN set) -> healthcheck -> pnpm e2e (auth + rooms + match over real HTTP/WS) - auth e2e: the Secure cookie assertion is now mode-aware (E2E_SECURE=1 for production servers, which set the attribute; scripts replay the cookie header so both modes work) - retire the legacy gh-pages workflow (pre-auth static demo) Rehearsed locally with the exact integration steps: build, node server.js, healthcheck, full e2e suite — all green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #10 (needs the in-repo
e2e/suite). Implements docs/07 stages 1–2.Jobs
prisma generate→vitest(54 tests) →pnpm buildpostgres:16service container →migrate deploy→ build →node server.js(withORIGIN) → healthcheck →pnpm e2e— the auth/rooms/match suites over real HTTP + WebSocket against the production serverAlso: the auth e2e Secure-cookie assertion is now mode-aware (
E2E_SECURE=1in CI, since the production build setsSecure), and the legacy gh-pages workflow (pre-auth static demo) is retired.Verified
Rehearsed the integration job's exact steps locally: production build →
node server.js→ healthcheck → full e2e suite, all green. The workflow runs for real on this PR.🤖 Generated with Claude Code