diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index bdd64d40..b49d4e0d 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -24,11 +24,12 @@ permissions: contents: read jobs: mutation: - uses: yiisoft/actions/.github/workflows/roave-infection.yml@master + uses: yiisoft/actions/.github/workflows/infection.yml@master with: os: >- ['ubuntu-latest'] php: >- ['8.5'] + infection-args: --ignore-msi-with-no-mutations secrets: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/Makefile b/Makefile index 12df1e47..719e79dc 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ phpunit: ## [test] Run PHPUnit tests: `make phpunit ARGS="--filter=TestName"` mutation: infection infection: ## [infection] Run mutation testing with Infection. - $(RUN) ./vendor/bin/roave-infection-static-analysis-plugin --threads=max --ignore-msi-with-no-mutations --only-covered + $(RUN) ./vendor/bin/infection --threads=max --ignore-msi-with-no-mutations --only-covered psalm: ## Run Psalm static analysis: `make psalm ARGS="--show-info=true"` $(RUN) ./vendor/bin/psalm $(if $(ARGS),$(ARGS),--php-version=$(PHP_VERSION)) diff --git a/composer.json b/composer.json index 4c4219f6..f9087dc4 100644 --- a/composer.json +++ b/composer.json @@ -45,10 +45,10 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.95.11", + "infection/infection": "^0.29.8 || ^0.35.8", "phpbench/phpbench": "^1.4.3", "phpunit/phpunit": "^10.5.63", "rector/rector": "^2.5.2", - "roave/infection-static-analysis-plugin": "^1.35", "shipmonk/composer-dependency-analyser": "^1.8", "vimeo/psalm": "^5.26.1 || ^6.16.1", "yiisoft/code-style": "^1.0", 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