mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
🔧 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:
parent
23818bb0e5
commit
c9422f661f
30
.github/workflows/typecheck.yml
vendored
Normal file
30
.github/workflows/typecheck.yml
vendored
Normal 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 }}
|
||||
Loading…
Reference in New Issue
Block a user