Skip to content

Commit

Permalink
clean up mutation config
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Apr 24, 2024
1 parent baa7bea commit 6ced4f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
if: github.event_name == 'pull_request'
run: |
git fetch --depth=1 origin $GITHUB_BASE_REF
# Explicitly specify GitHub logger since our Stryker reporting will otherwise disable it.
php vendor/bin/infection --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --only-covered --min-covered-msi=100
# nproc returns 4 threads on GitHub Actions and this seems to provide the best performance.
composer mutation-diff-lines
- name: Run Infection for all files
if: github.event_name == 'push'
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
"mutation": [
"infection --threads=max --only-covered"
],
"mutation-diff-lines": [
"infection --threads=max --only-covered --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --min-covered-msi=100"
],
"cs": "phpcs",
"cbf": "phpcbf",
"unit": [
Expand Down
1 change: 1 addition & 0 deletions infection.json5
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"stryker": {
"report": "main"
},
"github": true,
"html": "var/infection.html"
},
"mutators": {
Expand Down

0 comments on commit 6ced4f9

Please sign in to comment.