GitHub Actions
Setup
Create .github/workflows/ci.yml in the project root. See references/ci.yml for the full template.
The CI pipeline mirrors the Husky pre-commit checks:
- •Lint —
bunx biome ci . - •Typecheck — bun run tsc --noEmit
- •Test —
bunx playwright test
Triggers
- •Push to
main - •All pull requests
Key Points
- •Use
oven-sh/setup-bun@v2for bun. - •Use
bun install --frozen-lockfilefor reproducible installs. - •Install Playwright browsers with
bunx playwright install --with-deps. - •Cache bun store:
~/.bun/install/cache. - •Set
CI=trueenvironment variable.
Adding the Workflow
bash
mkdir -p .github/workflows # Copy from references/ci.yml or write directly