Skip to content

Commit a272213

Browse files
committed
Update tests.yml
1 parent 20717f4 commit a272213

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,16 +229,15 @@ jobs:
229229
php-version: "${{ matrix.php-version }}"
230230
extensions: ds,mbstring
231231

232-
- name: "Install dependencies"
233-
run: "composer install --no-interaction --no-progress"
232+
- uses: "ramsey/composer-install@v3"
234233

235-
- name: "Install Tests dependencies"
236-
working-directory: "tests"
237-
run: "composer install --no-interaction --no-progress"
234+
- uses: "ramsey/composer-install@v3"
235+
with:
236+
working-directory: "tests/"
238237

239-
- name: "Install build-infection dependencies"
240-
working-directory: "build-infection"
241-
run: "composer install --no-interaction --no-progress"
238+
- uses: "ramsey/composer-install@v3"
239+
with:
240+
working-directory: "build-infection/"
242241

243242
- name: "Configure infection"
244243
run: |
@@ -261,20 +260,21 @@ jobs:
261260
restore-keys: |
262261
result-cache-v1-${{ matrix.php-version }}-
263262
263+
# see https://infection.github.io/guide/command-line-options.html#coverage
264264
- name: "Create coverage in parallel"
265265
run: |
266266
php -d pcov.enabled=1 tests/vendor/bin/paratest \
267267
--passthru-php="'-d' 'pcov.enabled=1'" \
268268
--runner WrapperRunner \
269-
--coverage-xml=coverage-xml
269+
--coverage-xml=tmp/coverage/coverage-xml --log-junit=tmp/coverage/junit.xml
270270
271271
- name: "Run infection"
272272
run: |
273273
git fetch --depth=1 origin ${{ steps.default-branch.outputs.name }}
274274
infection \
275275
--git-diff-base=origin/${{ steps.default-branch.outputs.name }} \
276276
--git-diff-lines \
277-
--coverage=coverage-xml \
277+
--coverage=tmp/coverage \
278278
--skip-initial-tests \
279279
--ignore-msi-with-no-mutations \
280280
--min-msi=100 \

0 commit comments

Comments
 (0)