Skip to content

Commit 9b0813e

Browse files
roxblnfkclaude
andcommitted
ci: report mutation testing results to Stryker dashboard
Configure Infection's Stryker logger to upload the HTML report for the 1.x branch. The dashboard API key is read from the STRYKER_DASHBOARD_API_KEY environment variable, wired to a GitHub Actions secret and only set on push to 1.x so pull requests (and forks) never overwrite the branch report. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6f851f3 commit 9b0813e

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/infection.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ jobs:
4848

4949
- name: 🧬 Run mutation testing with Infection
5050
run: composer infect:ci
51+
env:
52+
# Upload the report to the Stryker dashboard only on push to 1.x.
53+
# On pull requests (and forks) the key is empty, so Infection skips the upload
54+
# instead of overwriting the branch report with PR data.
55+
STRYKER_DASHBOARD_API_KEY: ${{ github.event_name == 'push' && secrets.STRYKER_DASHBOARD_API_KEY || '' }}

infection.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@
77
},
88
"timeout": 10,
99
"testFramework": "testo",
10-
"tmpDir": "runtime"
10+
"tmpDir": "runtime",
11+
"logs": {
12+
"stryker": {
13+
"report": "1.x"
14+
}
15+
}
1116
}

0 commit comments

Comments
 (0)