feat(ci): add server build validation to CI workflow#1456
Conversation
Adds a build-server job that compiles the production build to catch build-time issues (dependency updates, TypeScript compilation errors) before merge. Depends on typecheck-server and test-server. Closes Sachinchaurasiya360#1395 Signed-off-by: Xenon010101 <xenon010101@users.noreply.github.com>
|
Warning Review limit reached
More reviews will be available in 28 minutes and 22 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Hi @Xenon010101, thanks for contributing to InternHack! 🎉 I have automatically:
Our workflows will now analyze your changes to classify:
Tip Ensure your PR description references the issue it resolves (e.g. Happy coding! 🚀 |
What
Add server build validation step to the CI workflow to ensure the backend can complete its production build during pull requests.
Root cause
The CI validated server code via type checking and tests, but never verified that the production build (
prisma generate && tsc) actually succeeds. Build-time issues could slip through.Changes
build-serverjob to.github/workflows/ci.ymltypecheck-serverandtest-server(sequential pipeline)npm run buildwhich executesprisma generate && tscneeds: [typecheck-server]totest-serverfor consistencyVerification
build-clientjobCI failures
N/A
Before
Server typechecking and tests passed, but production build could fail.
After
PR cannot merge if the server production build fails.
Closes #1395