Skip to content

Commit 00e1917

Browse files
committed
Add Infection
1 parent 08e1d5a commit 00e1917

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

.github/workflows/infection.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Infection
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "master"
8+
schedule:
9+
- cron: "0 17 * * *"
10+
11+
jobs:
12+
Infection:
13+
runs-on: ubuntu-18.04
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Install PHP
19+
uses: shivammathur/[email protected]
20+
with:
21+
php-version: 7.4
22+
coverage: xdebug
23+
extensions: json
24+
25+
- name: Install Dependencies
26+
run: composer install --prefer-dist --no-progress --no-suggest
27+
28+
- name: Run Infection
29+
run: vendor/bin/infection --min-msi=64 --min-covered-msi=65 --log-verbosity=none -s
30+
env:
31+
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Downloads](https://poser.pugx.org/simpod/graphql-utils/d/total.svg)](https://packagist.org/packages/simpod/graphql-utils)
66
[![Packagist](https://poser.pugx.org/simpod/graphql-utils/v/stable.svg)](https://packagist.org/packages/simpod/graphql-utils)
77
[![GitHub Issues](https://img.shields.io/github/issues/simPod/GraphQL-Utils.svg?style=flat-square)](https://github.com/simPod/GraphQL-Utils/issues)
8+
[![Type Coverage](https://shepherd.dev/github/simPod/GraphQL-Utils/coverage.svg)](https://shepherd.dev/github/simPod/GraphQL-Utils)
89

910
## Contents
1011
- [Installation](#installation)

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"require-dev": {
2121
"doctrine/coding-standard": "^8.1",
22+
"infection/infection": "^0.17.6",
2223
"phpstan/extension-installer": "^1.0",
2324
"phpstan/phpstan": "0.12.38",
2425
"phpstan/phpstan-phpunit": "0.12.10",

infection.json.dist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"bootstrap": "./tests/bootstrap.php",
3+
"timeout": 10,
4+
"source": {
5+
"directories": [
6+
"src"
7+
]
8+
},
9+
"mutators": {
10+
"@default": true
11+
},
12+
"logs": {
13+
"badge": {
14+
"branch": "master"
15+
},
16+
"text": "infection-log.txt"
17+
}
18+
}

0 commit comments

Comments
 (0)