Skip to content

ci: build the site on every PR - #55

Merged
totollygeek merged 1 commit into
mainfrom
ci/pr-build-check
Jul 30, 2026
Merged

ci: build the site on every PR#55
totollygeek merged 1 commit into
mainfrom
ci/pr-build-check

Conversation

@totollygeek

Copy link
Copy Markdown
Contributor

Adds a pull_request workflow running ./zuke build — the same command deploy.yml runs, so npm ci, astro check and astro build all have to pass before anything lands on main.

Today the only workflow triggers on push: [main], so a malformed public/llms.txt or src/data/api.json from the automated Zuke docs sync is discovered after it is already deployed. This moves that discovery to the PR.

The job is named Build the site — that name is what gets required on main in the next step, and renaming it later would silently un-gate the branch, so the workflow says so in a comment.

Note this PR validates itself: for a same-repo PR, GitHub runs the workflow file from the PR branch, so the check below is the gate proving it works before it becomes required.

The only workflow ran on push to main, so a broken artifact — including the
docs sync the Zuke release pushes — was caught after it had already deployed.
Run the same ./zuke build (npm ci, astro check, astro build) on every pull
request, so the failure surfaces before the merge.

This job is meant to become the required status check on main, which is what
lets the release's website sync merge itself against a real gate instead of a
manual click.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@totollygeek
totollygeek merged commit 0bf2908 into main Jul 30, 2026
1 check passed
@totollygeek
totollygeek deleted the ci/pr-build-check branch July 30, 2026 14:39
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