Skip to content

ci: verify the production build on pull requests - #730

Merged
Calebux merged 1 commit into
zintarh:mainfrom
Vox-d-glitch:fix/579-build-ci
Oct 1, 2026
Merged

Calebux merged 1 commit into
zintarh:mainfrom
Vox-d-glitch:fix/579-build-ci

Conversation

@Vox-d-glitch

Copy link
Copy Markdown
Contributor

I added a "Production Build" job to the CI workflow that runs pnpm build on every pull request as its own status check, so it can be marked as required and a change that breaks next build fails CI before merging. It restores and saves .next/cache with actions/cache, keyed on the lockfile and source files, falling back to the latest cache for the same lockfile. After the build it writes the client JavaScript, CSS, static and server output totals to the job summary, leaving the per-bundle breakdown to the existing bundle-size workflow.

I also corrected the bundle analyzer configuration from #375 so it is called with options before wrapping the config: withBundleAnalyzer({ enabled: process.env.ANALYZE === "true" })(nextConfig).

Once this is merged, "Production Build" needs to be added as a required status check in the branch protection settings for main.

Closes #579

Add a Production Build job to the CI workflow that runs next build with a
cached .next/cache and writes the build output size to the job summary.
Configure the bundle analyzer with options before applying it to the
Next.js config, which is what broke next build.
@vercel

vercel Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Vox-d-glitch is attempting to deploy a commit to the zintarh Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Vox-d-glitch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Calebux
Calebux merged commit 942c89b into zintarh:main Oct 1, 2026
1 check failed
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: next build is not verified on pull requests

2 participants