Skip to content

Commit a36e278

Browse files
committed
Add Stryker Report and Badge
1 parent 45a4e99 commit a36e278

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.github/workflows/commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,6 @@ jobs:
9494
run: composer install
9595

9696
- name: Check for Mutants
97+
env:
98+
INFECTION_BADGE_API_KEY: ${{ secrets.STRYKER_TOKEN }}
9799
run: vendor/bin/infection --threads=$(nproc) --no-progress --logger-github

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![License](http://poser.pugx.org/navarr/iterable-to-array/license)](https://packagist.org/packages/navarr/iterable-to-array)
66
[![Tests](https://github.com/navarr/iterable_to_array/actions/workflows/commit.yml/badge.svg)](https://github.com/navarr/iterable_to_array/actions/workflows/commit.yml)
77
[![Code Coverage](https://codecov.io/gh/navarr/iterable_to_array/branch/main/graph/badge.svg?token=DJRUJTV2GW)](https://app.codecov.io/gh/navarr/iterable_to_array/)
8+
[![Mutation score](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fnavarr%2Fiterable_to_array%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/navarr/iterable_to_array/main)
89

910
A simple utility class that handles the boilerplate of converting an iterable into an array.
1011

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"phpstan/phpstan": "^1",
1212
"roave/security-advisories": "dev-master",
1313
"phpunit/phpunit": "^9.5",
14-
"infection/infection": "^0.25.3",
14+
"infection/infection": "^0.26",
1515
"squizlabs/php_codesniffer": "^3.6",
1616
"jetbrains/phpstorm-attributes": "^1.0"
1717
},

infection.json.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@
1414
"Navarr\\Utils\\IterableToArray::convert"
1515
]
1616
}
17+
},
18+
"logs": {
19+
"stryker": {
20+
"report": "/^.*$/"
21+
}
1722
}
1823
}

0 commit comments

Comments
 (0)