Game Client CI/CD Production
Overview
Builds and deploys the game client to Vercel (production), then runs E2E production tests and Lighthouse CI. Runs only on push to main when relevant paths change.
Workflow file: production-w-app-game-client.yml
Triggers
- Push to
mainwhen any of these paths change:apps/game-client/**packages/ui/**,packages/theme/**tools/e2e/**package.json,pnpm-lock.yaml,turbo.json.github/workflows/production-w-app-game-client.yml
- workflow_dispatch for manual runs.
Pipeline steps
- Checkout repository (full depth).
- CI setup (Node, dependencies).
- Validate monorepo package for
game-client. - Deploy to Vercel (production) using
VERCEL_PROJECT_ID_GAME_CLIENT,VERCEL_TOKEN,VERCEL_ORG_ID. - Run E2E production tests against
https://www.kartuli.app(tests undertools/e2e/tests/game-client/production). - Run Lighthouse CI (assertions; artifacts on failure).
Failure handling
- Inspect the failing job in GitHub Actions (deploy, E2E, or Lighthouse).
- Fix the cause (e.g. build, tests, or Vercel config) and push to
mainor re-run the workflow.