Skip to content

ci: validate site builds on pull requests - #481

Closed
Shayne Boyer (spboyer) wants to merge 1 commit into
mainfrom
spboyer-validate-site-builds-on-pr
Closed

ci: validate site builds on pull requests#481
Shayne Boyer (spboyer) wants to merge 1 commit into
mainfrom
spboyer-validate-site-builds-on-pr

Conversation

@spboyer

@spboyer Shayne Boyer (spboyer) commented Jul 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Add pull_request coverage to the Pages workflow so docs-site changes run the existing cd site && npm ci && npm run build validation before merge.
  • Add an in-workflow path filter for site/** and .github/workflows/pages.yml so non-site PRs still get a completed/skipped check instead of a pending required check.
  • Keep Pages artifact upload and deployment disabled for pull_request events while preserving existing push/release deployment behavior.

Closes #473

Validation

  • git diff --check
  • ruby -e "require 'yaml'; YAML.load_file('.github/workflows/pages.yml')"
  • PR ci: validate site builds on pull requests #481 checks: Pages Site change filter passed, Pages Build passed, Pages Deploy skipped on pull_request as intended, and all other PR checks passed or skipped.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 28, 2026 13:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitHub Pages workflow to validate the docs site build on pull requests targeting main, while keeping artifact upload and deployment disabled for PR events.

Changes:

  • Add pull_request coverage to run the site build validation before merge.
  • Add a changes job using dorny/paths-filter to gate the site build to PRs that actually touch site/** (or the Pages workflow).
  • Prevent Pages artifact upload and deployment on pull_request events while preserving existing deploy behavior for push/workflow_run.
Show a summary per file
File Description
.github/workflows/pages.yml Adds PR-time site build validation with path filtering, and skips artifact upload/deploy on PRs.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment on lines 17 to 21
permissions:
contents: read
pages: write
pull-requests: read
id-token: write
Comment on lines +9 to +11
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
@spboyer

Copy link
Copy Markdown
Member Author

Superseded by #476. Closing duplicate candidate from parallel coding-agent fanout.

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.

ci: validate site builds on pull requests

3 participants