Skip to content

Commit 8b5ec6f

Browse files
committed
Update Makefile
1 parent 5fa7cd8 commit 8b5ec6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,7 @@ infection:
170170
git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x
171171
composer install --working-dir build-infection --no-interaction --no-progress
172172
php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5
173-
php vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout
173+
version=$(jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock)
174+
composer require infection/infection:$version --dev
175+
php build-infection/vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout
174176
rm infection.json5

0 commit comments

Comments
 (0)