Skip to content

Commit

Permalink
Fix mutation tests on push (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Feb 9, 2023
1 parent 628adcb commit 806ded0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/mt.yml
Expand Up @@ -33,8 +33,14 @@ jobs:
chmod +x infection.phar
- name: Run Infection for added files only
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
if: github.event_name == 'pull_request'
run: |
git fetch --depth=1 origin $GITHUB_BASE_REF
php infection.phar -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
php infection.phar -j8 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
- name: Run Infection for all files
if: github.event_name == 'push'
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
run: |
php infection.phar -j8 --ignore-msi-with-no-mutations --only-covered

0 comments on commit 806ded0

Please sign in to comment.