Skip to content

Commit 0ad8f1f

Browse files
authored
Merge pull request #94 from kenjis/update-infection.yml
chore: update infection.yml
2 parents 8f1fb34 + e86cfd4 commit 0ad8f1f

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/Template/.github/workflows/infection.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ on:
99
- 'composer.*'
1010
- 'phpunit*'
1111
- '.github/workflows/infection.yml'
12-
push:
13-
branches:
14-
- develop
15-
paths:
16-
- '**.php'
17-
- 'composer.*'
18-
- 'phpunit*'
19-
- '.github/workflows/infection.yml'
2012

2113
jobs:
2214
main:
@@ -62,10 +54,7 @@ jobs:
6254
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
6355
fi
6456
65-
- name: Test with PHPUnit
66-
run: vendor/bin/phpunit --teamcity
67-
68-
- name: Mutate with Infection
57+
- name: Run Infection for added files only
6958
run: |
7059
git fetch --depth=1 origin $GITHUB_BASE_REF
71-
infection --threads=2 --skip-initial-tests --coverage=build/phpunit --git-diff-base=origin/$GITHUB_BASE_REF --git-diff-filter=AM --logger-github --ignore-msi-with-no-mutations
60+
infection --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations --only-covered --logger-github

0 commit comments

Comments
 (0)