1
0
mirror of https://github.com/php/pie.git synced 2026-03-23 23:12:17 +01:00

Add mutation testing with Infection

This commit is contained in:
James Titcumb
2026-03-18 12:57:26 +00:00
parent b46ed9db1d
commit 5175bec268
2 changed files with 27 additions and 0 deletions

View File

@@ -203,6 +203,22 @@ jobs:
- name: Run phpstan
run: vendor/bin/phpstan
mutation-testing:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
extensions: intl, sodium, zip
tools: infection
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v6
- uses: ramsey/composer-install@v3
- name: Run infection
run: sudo infection --min-msi=68 --min-covered-msi=68 --threads=4 --show-mutations=max --no-progress
build-assets:
needs:
- unit-tests

11
infection.json5 Normal file
View File

@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/infection/infection/0.32.6/resources/schema.json",
"source": {
"directories": [
"src"
]
},
"mutators": {
"@default": true
}
}