From 953b6a0c4a06925e2aba7932a1b784e69adc29bd Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Sat, 31 Oct 2026 10:11:49 +0300 Subject: [PATCH] Switch to --- .github/workflows/mutation.yml | 3 ++- composer.json | 4 ++-- docs/internals.md | 5 ++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 44a32d00..3357d377 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -24,9 +24,10 @@ concurrency: jobs: mutation: - uses: yiisoft/actions/.github/workflows/roave-infection.yml@master + uses: yiisoft/actions/.github/workflows/infection.yml@master secrets: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} with: php: >- ['8.5'] + infection-args: --ignore-msi-with-no-mutations diff --git a/composer.json b/composer.json index 1c715145..b9cb17ab 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.92.5", + "infection/infection": "^0.29.8 || ^0.35.8", "phpunit/phpunit": "^10.5", "rector/rector": "^2.0", - "roave/infection-static-analysis-plugin": "^1.35", "shipmonk/composer-dependency-analyser": "^1.8", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^5.26.1|^6.4.1", @@ -62,7 +62,7 @@ ], "scripts": { "dependency-analyser": "composer-dependency-analyser", - "mutation": "vendor/bin/roave-infection-static-analysis-plugin --threads=2 --min-msi=100 --min-covered-msi=100 --ignore-msi-with-no-mutations --only-covered", + "mutation": "vendor/bin/infection --threads=2 --min-msi=100 --min-covered-msi=100 --ignore-msi-with-no-mutations --only-covered", "static": "vendor/bin/psalm", "test": "phpunit --testdox", "test-watch": "phpunit-watcher watch" diff --git a/docs/internals.md b/docs/internals.md index b77907c0..f4864398 100644 --- a/docs/internals.md +++ b/docs/internals.md @@ -10,11 +10,10 @@ The package is tested with [PHPUnit](https://phpunit.de/). To run tests: ## Mutation testing -The package tests are checked with [Infection](https://infection.github.io/) mutation framework with -[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it: +The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it: ```shell -./vendor/bin/roave-infection-static-analysis-plugin +./vendor/bin/infection ``` ## Static analysis