Skip to content

Commit

Permalink
4 threads
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Apr 24, 2024
1 parent 5872b53 commit d3cfbb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
if: github.event_name == 'pull_request'
run: |
git fetch --depth=1 origin $GITHUB_BASE_REF
# nproc returns 4 threads on GitHub Actions.
composer mutation-diff-lines
- name: Run Infection for all files
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@
"php var/box.phar compile"
],
"mutation": [
"infection --threads=max --only-covered"
"infection --threads=4 --only-covered"
],
"mutation-diff-lines": [
"infection --threads=max --only-covered --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --min-covered-msi=100"
"infection --threads=4 --only-covered --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --min-covered-msi=100"
],
"cs": "phpcs",
"cbf": "phpcbf",
Expand Down

0 comments on commit d3cfbb9

Please sign in to comment.