mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-21 12:55:09 +00:00
* fix(ci): add PR comment with test summary and block on failure Add a `comment` job to the test workflow that parses JUnit XML artifacts and posts a sticky PR comment showing pass/fail counts per suite, with failed test names listed in a collapsible section and a link to the run. Guards against fork PRs (read-only token) and stale overlapping runs (skips comment if PR head has moved past our SHA). * fix(ci): use payload SHA for staleness check, handle missing artifacts - Replace context.sha (merge commit SHA) with context.payload.pull_request.head.sha so the staleness guard compares the correct values and the comment actually gets posted - Add continue-on-error to download-artifact so cancelled runs gracefully fall through to the "no test results" message * fix(ci): show warning icon for zero-test suites instead of failure