All workflows run within the GitHub Actions free tier (2,000 minutes/month). Estimated usage per CI run: ~2 minutes.
Overview
Both pre-built workflows trigger only when files under
playground/ change.
1. GitHub Actions Setup
Required Secrets
Navigate to Settings → Secrets and variables → Actions and add:2. CI Workflow — Automated Testing
File:.github/workflows/playground-ci.yml
The CI workflow runs on every push to main and on pull requests that touch playground files.
Jobs
- Lint & Type Check — TypeScript compilation and ESLint
- Unit & Property-Based Tests — Vitest with fast-check and coverage
- E2E Tests — Playwright against the built output
- PR Comment — Summary table with results from all test jobs
PR Comment Example
Blocking PRs on Failure
Enable branch protection rules: Settings → Branches → Add rule formain → Enable Require status checks to pass before merging → Select the three CI jobs.
3. CD Workflow — Automated Deployment
File:.github/workflows/playground-deploy.yml
Triggers on pushes to main when playground files change. Jobs:
- Deploy to Vercel — builds and deploys to production
- Smoke Tests — health check, content verification, static asset check
- Deployment Status — sets commit status on GitHub
4. Generating Custom Workflows
5. Free Tier Budget Management
Tips to stay within limits:
- Path filters skip unrelated commits
- Concurrency controls cancel in-progress runs
- npm and Playwright browser caching between runs
- Timeout limits prevent runaway builds
6. Troubleshooting
Related Guides
- Getting Started — Initial setup and workspace creation
- Governance Workflow — Approval processes and policy lifecycle
- Compliance Mapping — Map policies to compliance frameworks
- Audit Trail — Immutable logging, filtering, and export

