Skip to content

Commit

Permalink
Enable infection tests badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 21, 2021
1 parent dcceb78 commit 6c588bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Run Grumphp
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
run: vendor/bin/grumphp run --tasks=infection -n

- name: Send feedback on Stryker Dashboard
if: ${{ success() }}
run: |
vendor/bin/infection -j2
- name: Send feedback on Github
if: ${{ failure() }}
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Run Grumphp
run: vendor/bin/grumphp run --tasks=phpunit,coverage_clover
env:
XDEBUG_MODE: coverage
run: vendor/bin/grumphp run --tasks=phpunit,clover_coverage

- name: Send Scrutinizer data
run: |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Scrutinizer code quality][code quality]][3]
[![Type Coverage][type coverage]][4]
[![Code Coverage][code coverage]][3]
[![Mutation testing badge][mutation testing badge]][6]
[![Mutation testing badge][mutation badge url]][mutation badge link]
[![License][license]][1]
[![Donate!][donate github]][5]

Expand Down Expand Up @@ -193,8 +193,8 @@ For more detailed changelogs, please check [the release changelogs][45].
[license]: https://img.shields.io/packagist/l/loophp/iterators.svg?style=flat-square
[donate github]: https://img.shields.io/badge/Sponsor-Github-brightgreen.svg?style=flat-square
[donate paypal]: https://img.shields.io/badge/Sponsor-Paypal-brightgreen.svg?style=flat-square
[mutation testing badge]: https://badge.stryker-mutator.io/github.com/loophp/iterators/main
[6]: https://stryker-mutator.github.io
[mutation badge url]: https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Floophp%2Fiterators%2Fmain
[mutation badge link]: https://dashboard.stryker-mutator.io/reports/github.com/loophp/iterators/main
[7]: https://packagist.org/?query=iterators
[11]: https://en.wikipedia.org/wiki/Immutable_object
[12]: https://www.php.net/manual/en/class.generator.php
Expand Down

0 comments on commit 6c588bd

Please sign in to comment.