Skip to content

Commit 3c38a9c

Browse files
Wizard1209claude
andcommitted
ci: don't let test-result publishing fail the Test job
The "Publish results" step (EnricoMi/publish-unit-test-result-action) fails the whole job when GitHub throttles its PR-lookup endpoint (HTTP 429), even though lint and tests passed. Mark it continue-on-error and grant the action the checks/pull-requests permissions it needs to use the API instead of falling back to unauthenticated scraping. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 02bc467 commit 3c38a9c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
test:
1616
name: Test
1717
runs-on: ${{ matrix.os }}
18+
permissions:
19+
contents: read
20+
checks: write
21+
pull-requests: write
1822
strategy:
1923
matrix:
2024
include:
@@ -64,5 +68,7 @@ jobs:
6468
- name: Publish results
6569
uses: EnricoMi/publish-unit-test-result-action/composite@v2
6670
if: always()
71+
# Publishing results must never fail the job (e.g. GitHub API 429 throttling).
72+
continue-on-error: true
6773
with:
6874
junit_files: "*.xml"

0 commit comments

Comments
 (0)