-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CLI-556: Add mutation testing. * remove broken tests * fix phpstan * xdebug_mode * Revert "fix phpstan" This reverts commit 2fa9e2e. * Revert "remove broken tests" This reverts commit ae08062. * composer * fix workflow * cleanup * cleanup * fix filter
- Loading branch information
1 parent
c89b0e4
commit 1665aec
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Mutation Testing | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
name: Mutation Testing Code Review Annotations | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
tools: composer:v2 | ||
extensions: pcov | ||
coverage: pcov | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer install --no-progress --no-suggest --no-interaction | ||
- name: Download Infection | ||
run: composer infection-install | ||
|
||
- name: Run Infection for added files only | ||
run: | | ||
git fetch --depth=1 origin $GITHUB_BASE_REF | ||
php build/infection.phar -j2 --git-diff-filter=AM --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --only-covered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/infection/infection/0.26.0/resources/schema.json", | ||
"source": { | ||
"directories": [ | ||
"src" | ||
] | ||
}, | ||
"mutators": { | ||
"@default": true | ||
} | ||
} |