Skip to content

ci: add PR build/test guard#294

Merged
triw0lf merged 1 commit into
mainfrom
ci/pr-build-check
Jun 25, 2026
Merged

ci: add PR build/test guard#294
triw0lf merged 1 commit into
mainfrom
ci/pr-build-check

Conversation

@triw0lf

@triw0lf triw0lf commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Why

The #290 → #291 → #292 saga happened because nothing validated the build before merge — a platform-incomplete package-lock.json only blew up on the production Pages deploy, after merge. This adds a pre-merge gate so that class of failure is caught on the PR.

What it does

A CI workflow on every PR to main that runs the same steps as the deploy, on ubuntu-latest / node 20:

  • npm ci — strict install; fails fast if the lockfile is out of sync or missing the linux-x64 native binaries (npm/cli#4828), exactly the bug that broke the deploy twice
  • npm run type-check
  • npm test
  • npm run build

Effect

Future PRs that touch dependencies or source can't reach a green-to-merge state with a broken build/tests/lockfile — the failure surfaces on the PR instead of taking down the post-merge deploy. The live site is never the place we discover a bad lockfile.

🤖 Generated with Claude Code

Runs npm ci + type-check + test + build on every PR to main, mirroring the Pages deploy. Catches a broken build, failing tests, or a platform-incomplete package-lock.json before merge rather than on the post-merge production deploy (the failure mode behind #291/#292).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@triw0lf triw0lf merged commit 854095c into main Jun 25, 2026
1 check passed
@triw0lf triw0lf deleted the ci/pr-build-check branch June 25, 2026 00:06
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