Skip to content

Add PR CI to verify the site builds before merge#36

Merged
pacu merged 1 commit into
mainfrom
ci-improvements
Jul 7, 2026
Merged

Add PR CI to verify the site builds before merge#36
pacu merged 1 commit into
mainfrom
ci-improvements

Conversation

@pacu

@pacu pacu commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What

Adds .github/workflows/ci.yml: a pull_requestmain workflow that verifies the site builds into a publishable static export before merge.

How it works

  • Installs with pnpm install --frozen-lockfile (also catches package.json / pnpm-lock.yaml drift) and runs pnpm run build, on Node 24 with the packageManager-pinned pnpm — mirroring the deploy workflow.
  • Asserts out/index.html exists, so it confirms the static export was produced, not just that the command exited 0.
  • Does not deploy; deployment stays in nextjs.yml on push to main.

The job "Build (verify publishable export)" is set as a required status check on main, so branches that can't build for GitHub Pages can't merge.

Verification

Reproduced the exact CI steps locally on Node 24: --frozen-lockfile passes, build is green (11/11 static pages), out/index.html produced.

🤖 Generated with Claude Code

Run pnpm install --frozen-lockfile and pnpm run build on pull requests
targeting main (and in a merge queue), then assert the static export
produced out/index.html. This gates merges on a publishable build so a
branch that can't be built for GitHub Pages can't reach main.

Mark the "Build (verify publishable export)" job as a required status
check in branch protection to enforce it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pacu pacu merged commit ba5d8d0 into main Jul 7, 2026
1 check passed
@pacu pacu deleted the ci-improvements branch July 7, 2026 15:21
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