Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ jobs:
- name: "psalm"
run: "tools/vendor/bin/psalm --shepherd --stats"

mutation-tests:
name: "Mutation tests"
mutation-tests-phpstan:
name: "Mutation tests with PHPStan"

runs-on: ${{ matrix.operating-system }}

Expand Down Expand Up @@ -178,12 +178,22 @@ jobs:
working-directory: "tools"
custom-cache-suffix: "ci"

- name: "Warmup PHPStan"
run: "tools/vendor/bin/phpstan analyse --memory-limit=-1"

- name: "Infection"
run: "tools/vendor/bin/roave-infection-static-analysis-plugin --threads=$(nproc)"
run: "tools/vendor/bin/infection --static-analysis-tool=phpstan --threads=$(nproc)"
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: log.txt
path: log.txt
if-no-files-found: error

compatibility:
name: "Test Compatibility"

Expand Down
3 changes: 3 additions & 0 deletions infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"report": "/^\\d\\.\\d\\.x$/"
}
},
"phpStan": {
"customPath": "tools/vendor/bin/phpstan"
},
"mutators": {
"@default": true
},
Expand Down
2 changes: 1 addition & 1 deletion tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"phpstan/phpstan-phpunit": "^2.0.6",
"vimeo/psalm": "^6.12.0",
"roave/backward-compatibility-check": "^8.14.0",
"roave/infection-static-analysis-plugin": "^1.38.0"
"infection/infection": "dev-master"
},
"config": {
"allow-plugins": {
Expand Down
81 changes: 15 additions & 66 deletions tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.