Skip to content

Commit ec413e0

Browse files
authored
Add Infection back (#264)
1 parent e01f44c commit ec413e0

File tree

6 files changed

+157
-292
lines changed

6 files changed

+157
-292
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ jobs:
6868
if: matrix.os == 'ubuntu-latest' && matrix.php-version == '7.4'
6969
run: |
7070
composer require --dev php-coveralls/php-coveralls
71-
COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} COVERALLS_RUN_LOCALLY=1 ./vendor/bin/php-coveralls -v
71+
COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} COVERALLS_RUN_LOCALLY=1 ./vendor/bin/php-coveralls --verbose
72+
73+
- name: Run Infection
74+
if: matrix.os == 'ubuntu-latest' && matrix.php-version == '7.4'
75+
run: composer infection

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"composer --working-dir=./dev-tools infection"
4848
],
4949
"install-dev-tools": [
50-
"composer --working-dir=./dev-tools install"
50+
"composer --working-dir=./dev-tools --quiet install"
5151
],
5252
"test": [
5353
"phpunit"

dev-tools/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/vendor/
2-
/infection.log

dev-tools/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"require-dev": {
66
"ergebnis/composer-normalize": "^2.3.2",
77
"friendsofphp/php-cs-fixer": "^2.16.1",
8-
"infection/infection": "^0.16.1",
8+
"infection/infection": "^0.15.3",
99
"kubawerlos/types-checker": "^2.0.0",
1010
"maglnet/composer-require-checker": "^2.1.0",
1111
"mi-schi/phpmd-extension": "^4.3.0",
@@ -32,7 +32,7 @@
3232
"phpcbf || exit 0"
3333
],
3434
"infection": [
35-
"infection run --ansi --min-msi=100 --only-covered --threads=16"
35+
"infection run --threads=16"
3636
]
3737
}
3838
}

0 commit comments

Comments
 (0)