Skip to content

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 main when 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

  1. Checkout repository (full depth).
  2. CI setup (Node, dependencies).
  3. Validate monorepo package for game-client.
  4. Deploy to Vercel (production) using VERCEL_PROJECT_ID_GAME_CLIENT, VERCEL_TOKEN, VERCEL_ORG_ID.
  5. Run E2E production tests against https://www.kartuli.app (tests under tools/e2e/tests/game-client/production).
  6. 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 main or re-run the workflow.

References

Providers