Skip to content

chore(ci): add PR build check (foundation for auto-merge)#14

Merged
vitbokisch merged 1 commit into
mainfrom
chore/ci-pr-check
May 21, 2026
Merged

chore(ci): add PR build check (foundation for auto-merge)#14
vitbokisch merged 1 commit into
mainfrom
chore/ci-pr-check

Conversation

@vitbokisch
Copy link
Copy Markdown
Member

Summary

Adds a CI workflow that runs bun run build on every PR to main. This is the foundation for enabling branch protection + auto-merge on this repo: the resulting Build status check is what protection will require, and what allow_auto_merge will wait for.

bun run build invokes next build which runs TypeScript checking, MDX compilation, and static page generation — covers the same ground I've been verifying manually before opening doc PRs (kinetic rewrite, audit sync, etc.).

Style matches the existing nextjs.yml deploy workflow (Bun, unpinned action versions, similar cache shape).

Next steps after merge

  1. Add branch protection on main requiring the Build check (via gh api).
  2. Enable allow_auto_merge on the repo (currently false).
  3. Future PRs can be marked gh pr merge --auto --squash and will land once the build passes.

Test plan

  • Workflow file syntactically valid (will be confirmed when this PR's CI runs)
  • bun run build passes locally (used this same command for every recent docs PR)

🤖 Generated with Claude Code

…o-merge)

The docs repo only had a deploy-on-merge workflow, no PR-blocking CI.
This adds a `CI` workflow that runs `bun run build` (which includes
Next.js TypeScript checking and MDX compilation) on every PR to main.

The resulting `Build` status check is what branch protection on main will
require, which in turn is what `allow_auto_merge` will wait for. Without
this gate, auto-merge would land PRs the moment they're created.

Style matches the existing `nextjs.yml` deploy workflow (unpinned action
versions, simple Bun setup).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vitbokisch vitbokisch merged commit 7d23fe0 into main May 21, 2026
1 check passed
@vitbokisch vitbokisch deleted the chore/ci-pr-check branch May 21, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant