Skip to content
Open
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: 16 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • is sudo necessary here?!
  • any reason to use --threads=4 instead of --threads=max?

Copy link
Contributor Author

@asgrim asgrim Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • is sudo necessary here?!

yep, the tests require it (because I can't non-interactively sudo)

  • any reason to use --threads=4 instead of --threads=max?

nope :) will update


build-assets:
needs:
- unit-tests
Expand Down
11 changes: 11 additions & 0 deletions infection.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/infection/infection/0.32.6/resources/schema.json",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so what's the workflow to run it locally and not the CI when you're developing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the phar, as per the docs; I suppose that should be documented 😁

"source": {
"directories": [
"src"
]
},
"mutators": {
"@default": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as an app, maybe it's already disabled by default, there is the public -> protected/private mutator that can be disabled

}
}
Loading