Skip to content

Commit

Permalink
Merge pull request #857 from kukulich/test
Browse files Browse the repository at this point in the history
Run coverage and mutation tests all at once
  • Loading branch information
Ocramius authored Nov 16, 2021
2 parents 62a3229 + 398a78b commit b9539e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
coverage: "xdebug"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1, zend.assertions=1
env:
update: true

- name: "Cache dependencies"
uses: "actions/cache@v2"
Expand All @@ -57,20 +55,8 @@ jobs:
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress"

- name: "Generate code coverage"
run: "vendor/bin/phpunit --coverage-xml=coverage/coverage-xml --log-junit=coverage/junit.xml"

- name: "Install PHP without xdebug"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
env:
update: true

- name: "Infection"
run: "vendor/bin/roave-infection-static-analysis-plugin --skip-initial-tests --coverage=coverage --threads=$(nproc)"
run: "vendor/bin/roave-infection-static-analysis-plugin --threads=$(nproc)"
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
2 changes: 1 addition & 1 deletion infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"mutators": {
"@default": true
},
"minMsi": 93,
"minMsi": 94,
"minCoveredMsi": 94
}

0 comments on commit b9539e7

Please sign in to comment.