Skip to content

Commit a5dfc51

Browse files
author
Bizley
committed
Infection
1 parent 1d6f67e commit a5dfc51

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.github export-ignore
2+
/tests export-ignore
3+
/phpstan.sh export-ignore
4+
/phpunit.xml.dist export-ignore
5+
/infection.json.dist export-ignore
6+
/phpstan.neon export-ignore
7+
/phpstan.sh export-ignore
8+
/phpunit.xml.dist export-ignore

.github/workflows/tests.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
with:
6161
php-version: ${{ matrix.php }}
6262
extensions: mbstring, intl, mysql
63-
coverage: "pcov"
63+
coverage: 'pcov'
6464
env:
6565
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666
update: true
@@ -76,16 +76,11 @@ jobs:
7676
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
7777
restore-keys: ${{ runner.os }}-composer-
7878

79-
- name: Install dependencies with PHP 8
80-
if: matrix.php == '8.0'
81-
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader
82-
83-
- name: Install dependencies with PHP 7
84-
if: matrix.php == '7.4'
85-
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
79+
- name: Install dependencies
80+
run: composer update --no-interaction --no-progress --optimize-autoloader
8681

8782
- name: Run PHPUnit
88-
if: matrix.php == '8.0'
83+
if: matrix.php != '7.4'
8984
run: vendor/bin/phpunit
9085

9186
- name: Run Infection with PHPUnit
@@ -94,3 +89,5 @@ jobs:
9489
mkdir -p build/logs
9590
vendor/bin/phpunit --coverage-xml=build/logs/coverage-xml --log-junit=build/logs/junit.xml
9691
vendor/bin/infection --threads=2 --coverage=build/logs --show-mutations --no-progress
92+
env:
93+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
![Latest Stable Version](https://img.shields.io/packagist/v/yii-podium/yii2-api.svg)
55
[![Total Downloads](https://img.shields.io/packagist/dt/yii-podium/yii2-api.svg)](https://packagist.org/packages/yii-podium/yii2-api)
66
![License](https://img.shields.io/packagist/l/yii-podium/yii2-api.svg)
7+
[![Infection MSI](https://badge.stryker-mutator.io/github.com/yii-podium/yii2-api/master)](https://infection.github.io)
78

89
Yii 2 Forum Engine Module API
910

@@ -33,5 +34,6 @@ Please refer to the [Documentation](https://github.com/yii-podium/yii2-api/blob/
3334

3435
## Podium Packages
3536

37+
- Yii 2 Podium API Active Record (WIP)
3638
- Yii 2 Podium Web Client (WIP)
3739
- Yii 2 Podium Rest Client (WIP)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"minimum-stability": "stable",
1818
"require": {
19-
"php": "^7.4|^8.0",
19+
"php": ">=7.4",
2020
"yiisoft/yii2": "^2.0.19"
2121
},
2222
"require-dev": {

infection.json.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
]
66
},
77
"logs": {
8-
"text": "infection.log"
8+
"text": "infection.log",
9+
"badge": {
10+
"branch": "master"
11+
}
912
},
1013
"mutators": {
1114
"@default": true

0 commit comments

Comments
 (0)