ci: render Playwright results as a GitHub Step Summary - #94
Conversation
Add a CI-only json reporter and .github/scripts/pw-summary.js that writes a pass/fail table plus the failing-test list to the workflow run summary page. No production code touched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe e2e pipeline now emits a Playwright JSON report, ignores the generated results file, and adds a GitHub Actions step that converts the report into a step-summary table with failing tests. ChangesPlaywright e2e summary flow
Sequence Diagram(s)sequenceDiagram
participant PlaywrightConfig as playwright.config.ts
participant ResultsJson as tests/e2e/results.json
participant SummaryScript as .github/scripts/pw-summary.js
participant StepSummary as GITHUB_STEP_SUMMARY
PlaywrightConfig->>ResultsJson: write JSON reporter output
SummaryScript->>ResultsJson: read report stats and suites
SummaryScript->>StepSummary: append Markdown summary
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Add a CI-only json reporter and .github/scripts/pw-summary.js that writes a pass/fail table plus the failing-test list to the workflow run summary page. No production code touched.
Summary by CodeRabbit