Skip to content

Commit b53b02e

Browse files
committed
ci: use Infection PHAR instead of Composer dependency
- Remove infection/infection from composer.json require-dev - Download Infection PHAR directly in the workflow - Download both PHAR and signature files for verification - Maintain same mutation testing thresholds (87% MSI)
1 parent 74e5a7d commit b53b02e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/mutation-testing.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@ jobs:
4040
- name: Install dependencies
4141
run: composer update -n --prefer-dist
4242

43+
- name: Download Infection PHAR
44+
run: |
45+
wget https://github.com/infection/infection/releases/latest/download/infection.phar
46+
wget https://github.com/infection/infection/releases/latest/download/infection.phar.asc
47+
chmod +x infection.phar
48+
4349
- name: Run mutation testing
44-
run: vendor/bin/infection --threads=max --min-msi=87 --min-covered-msi=87
50+
run: ./infection.phar --threads=max --min-msi=87 --min-covered-msi=87

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"phpunit/phpunit": "^11||^12",
2727
"guzzlehttp/guzzle": "^7.0",
2828
"humbug/box": "^4.6",
29-
"phpstan/phpstan": "^2.0",
30-
"infection/infection": "^0.30"
29+
"phpstan/phpstan": "^2.0"
3130
},
3231
"autoload": {
3332
"psr-4": {

0 commit comments

Comments
 (0)