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:
16
.github/workflows/continuous-integration.yml
vendored
16
.github/workflows/continuous-integration.yml
vendored
@@ -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
11
infection.json5
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/infection/infection/0.32.6/resources/schema.json",
|
||||
"source": {
|
||||
"directories": [
|
||||
"src"
|
||||
]
|
||||
},
|
||||
"mutators": {
|
||||
"@default": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user