Skip to content

Commit

Permalink
Increase infection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Feb 23, 2024
1 parent d15a992 commit 3c43872
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
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 -j8 --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --only-covered
php vendor/bin/infection --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --only-covered
- name: Run Infection for all files
if: github.event_name == 'push'
env:
INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY }}
run: |
php vendor/bin/infection -j8 --only-covered
php vendor/bin/infection --threads=max --only-covered
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"php var/box.phar compile"
],
"infection": [
"php -d pcov.enabled=1 vendor/bin/infection --threads=8"
"php -d pcov.enabled=1 vendor/bin/infection --threads=max"
],
"cs": "phpcs",
"cbf": "phpcbf",
Expand Down
3 changes: 2 additions & 1 deletion infection.json → infection.json5
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/infection/infection/0.26.13/resources/schema.json",
"$schema": "vendor/infection/infection/resources/schema.json",
"source": {
"directories": [
"src"
Expand All @@ -10,6 +10,7 @@
"report": "main"
}
},
"timeout": 30,
"mutators": {
"@default": true
}
Expand Down

0 comments on commit 3c43872

Please sign in to comment.