Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,15 @@ jobs:
php-version: "${{ matrix.php-version }}"
extensions: ds,mbstring

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

- uses: "ramsey/composer-install@v3"
with:
working-directory: "tests/"

- name: "Install build-infection dependencies"
working-directory: "build-infection"
run: "composer install --no-interaction --no-progress"
- uses: "ramsey/composer-install@v3"
with:
working-directory: "build-infection/"

- name: "Configure infection"
run: |
Expand All @@ -257,12 +260,21 @@ jobs:
restore-keys: |
result-cache-v1-${{ matrix.php-version }}-

# see https://infection.github.io/guide/command-line-options.html#coverage
- name: "Create coverage in parallel"
run: |
php -d pcov.enabled=1 tests/vendor/bin/paratest \
--passthru-php="'-d' 'pcov.enabled=1'" \
--coverage-xml=tmp/coverage/coverage-xml --log-junit=tmp/coverage/junit.xml

- name: "Run infection"
run: |
git fetch --depth=1 origin ${{ steps.default-branch.outputs.name }}
infection \
--git-diff-base=origin/${{ steps.default-branch.outputs.name }} \
--git-diff-lines \
--coverage=tmp/coverage \
--skip-initial-tests \
--ignore-msi-with-no-mutations \
--min-msi=100 \
--min-covered-msi=100 \
Expand Down
5 changes: 5 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
<group>levels</group>
</exclude>
</groups>
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
<logging/>
</phpunit>
Loading