🔧 Add typecheck CI workflow for pull requests (#2433)

## Summary
- Adds a new GitHub Actions workflow that runs `bunx nx affected -t
typecheck` on every pull request
- Uses the PR base branch as the Nx affected comparison base for
accurate change detection
- Sets up Node 24 + Bun with full git history for proper affected
analysis

## Test plan
- [ ] Open a PR with a type error and verify the check fails
- [ ] Open a PR with no type errors and verify the check passes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Baptiste Arnaud 2026-04-07 17:09:32 +02:00 committed by GitHub
parent 23818bb0e5
commit c9422f661f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

30
.github/workflows/typecheck.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Typecheck
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
statuses: write
jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "24"
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: "package.json"
- run: bun install --frozen-lockfile
- run: bunx @content-collections/cli build --config content-collections.ts
working-directory: apps/landing-page
- run: bunx nx affected -t typecheck --base=${{ github.event.pull_request.base.sha }}