chore: v0.13.0 — CI pipeline (build → unit → e2e) on PRs to master + push, dind-isolated e2e stack (docker-compose.ci.yml), playwright config env-var overrides (PW_REMOTE_BROWSER/E2E_DEPLOY_CMD/E2E_BASE_URL/E2E_COMPOSE_ARGS, backward-compatible), @playwright/test pinned as devDependency; AGENTS.md switched to pull-request workflow
CI / build + unit + e2e (pull_request) Canceled after 1s

This commit is contained in:
2026-09-18 15:35:06 +00:00
parent 79cf5a05e2
commit fdb8d07475
9 changed files with 146 additions and 21 deletions
+19
View File
@@ -0,0 +1,19 @@
# Isolated e2e stack for CI (.gitea/workflows/ci.yml) — runs inside the job's dind daemon,
# never on the production host. Mirrors docker-compose.yml minus Traefik: no external
# dev_net, no traefik labels; the app is served directly on port 3000 of the dind container.
# The build context is tarred by the compose client in the job and sent over DOCKER_HOST,
# so nothing here needs to be visible from inside dind; game state lives in a named volume
# (fresh per run, survives `docker compose restart flight` for e2e/state.spec.ts).
services:
flight:
build: .
image: flight-ops-ci
ports:
- "3000:3000"
environment:
FLIGHT_TEST_HOOKS: "1"
volumes:
- flight-db:/app/db
volumes:
flight-db: