Add a build/test CI check; bump Actions to latest majors - #30
Conversation
Renovate was set up recently but there was no way to quickly confirm a dependency bump still builds. Adds a CI workflow that restores, builds (Debug, to sidestep the Release-only wasm-opt workaround already in deploy-pages.yml), and runs a new BlazorApp.Tests project covering SampleCatalog's route/metadata invariants. Also bumps actions/checkout, actions/setup-dotnet, actions/upload-pages-artifact, and actions/deploy-pages to their current major versions.
|
Warning Review limit reached
Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds .NET 10 xUnit tests for ChangesTest automation
Pages deployment updates
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/ci.yml:
- Line 13: Update the actions/checkout step to set persist-credentials to false,
preventing the GitHub token from being stored in local Git configuration while
preserving the existing checkout behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f75aeaba-be29-47af-b4eb-f5b4917750e8
📒 Files selected for processing (7)
.github/workflows/ci.yml.github/workflows/deploy-pages.ymlBlazorApp.Tests/BlazorApp.Tests.csprojBlazorApp.Tests/SampleCatalogTests.csBlazorApp.Tests/xunit.runner.jsonOpenCvSharpBlazorSamples.slnglobal.json
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary
.github/workflows/ci.yml: on push/PR tomain, restores, builds (Debug), and runs tests — a fast signal for whether a Renovate dependency bump still builds, without needing the Release-only wasm-opt workaround already indeploy-pages.yml.BlazorApp.Tests, an xUnit v3 (xunit.v3.mtp-v2) project referencingBlazorAppand coveringSampleCatalog's invariants: unique routes, every route resolves to an actual@pageroute (checked via reflection over the built assembly'sRouteAttributes), required metadata fields are populated, andByCategoryaccounts for every sample exactly once.global.jsonopting into theMicrosoft.Testing.Platformdotnet testrunner, required forxunit.v3.mtp-v2on the .NET 10 SDK.actions/checkoutv4→v7,actions/setup-dotnetv4→v6,actions/upload-pages-artifactv3→v5,actions/deploy-pagesv4→v5 in both workflows.Test plan
dotnet restore/dotnet build -c Debug/dotnet test BlazorApp.Testsall pass locally from a clean checkout (27/27 tests).🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
CI/CD
Bug Fixes