Skip to content

ci(docs): check production and preview builds on pull requests - #777

Open
myasnikovdaniil wants to merge 2 commits into
fix/docs-entry-linksfrom
ci/docs-build-checks
Open

myasnikovdaniil wants to merge 2 commits into
fix/docs-entry-linksfrom
ci/docs-build-checks

Conversation

@myasnikovdaniil

Copy link
Copy Markdown
Contributor

PRs currently never run the Pages build, and production skips docs/next/. I added production and preview checks to the existing workflow, including legacy URLs and version rollover.

PR jobs use read-only permissions, publication stays on main after both builds pass.

Verified locally with Hugo extended 0.164.0, 26 fixtures, five output checks per environment, 129 translator tests and actionlint. Broken references in next/ fail preview, and failed npm installs now stop the build.

Stacked on #776, addresses #496 and #653 as part of #773.

Build the preview tree on pull requests so broken refs under next/ are
caught before merge, and check the production output that Pages publishes.

Keep build jobs read-only and gate the Pages artifact and deployment to
main. Fail dependency installation instead of continuing after npm errors.

Assisted-By: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e15dbba-e712-47d3-a125-818fff4e515d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@myasnikovdaniil
myasnikovdaniil marked this pull request as draft October 26, 2026 11:53
The production matrix environment leaked into fixture subprocesses and
made preview cases render production metadata. Keep the mode variables
on the full-site build step so each fixture can choose its own mode.

Assisted-By: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
@myasnikovdaniil
myasnikovdaniil marked this pull request as ready for review October 26, 2026 12:19

This branch has not been deployed

No deployments
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