Skip to content

Commit 199ba43

Browse files
author
Maxofil
committed
changes
1 parent caa705a commit 199ba43

File tree

3 files changed

+52
-32
lines changed

3 files changed

+52
-32
lines changed

.github/workflows/php.yml

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,50 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
10+
tests:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
15-
16-
- name: Setup PHP
17-
uses: shivammathur/setup-php@v2
18-
with:
19-
php-version: '7.4'
20-
coverage: xdebug
21-
env:
22-
update: true
23-
24-
- name: Validate composer.json and composer.lock
25-
run: composer validate
26-
27-
- name: Install dependencies
28-
run: composer install --prefer-dist --no-progress --no-suggest
29-
30-
- name: Tests
31-
run: composer run-script phpunit
32-
33-
- name: Mutation tests
34-
run: composer run-script infection
35-
env:
36-
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '7.4'
20+
coverage: xdebug
21+
env:
22+
update: true
23+
24+
- name: Validate composer.json and composer.lock
25+
run: composer validate
26+
27+
- name: Install dependencies
28+
run: composer install --prefer-dist --no-progress --no-suggest
29+
30+
- name: Tests
31+
run: composer run-script phpunit
32+
33+
- name: Mutation tests
34+
run: composer run-script infection
35+
36+
codestyle:
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@v2
41+
42+
- name: Setup PHP
43+
uses: shivammathur/setup-php@v2
44+
with:
45+
php-version: '7.4'
46+
env:
47+
update: true
48+
49+
- name: Validate composer.json and composer.lock
50+
run: composer validate
51+
52+
- name: Install dependencies
53+
run: composer install --prefer-dist --no-progress --no-suggest
54+
55+
- name: Codestyle
56+
run: composer run-script codestyle

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
"require-dev": {
2020
"phpunit/phpunit": "^9.1",
2121
"infection/infection": "^0.16",
22-
"mockery/mockery": "^1.2"
22+
"mockery/mockery": "^1.2",
23+
"infinityloop-dev/coding-standard": "dev-master"
2324
},
2425
"scripts": {
2526
"phpunit": "phpunit tests",
26-
"infection": "infection"
27+
"infection": "infection",
28+
"codestyle": "phpcs --standard=vendor/infinityloop-dev/coding-standard/InfinityloopCodingStandard/ruleset.xml --extensions=php src tests"
2729
},
2830
"autoload": {
2931
"psr-4": {

infection.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@
88
"logs": {
99
"text": "build/infection.log",
1010
"summary": "build/summary.log",
11-
"perMutator": "build/per-mutator.md",
12-
"badge": {
13-
"branch": "master"
14-
}
11+
"perMutator": "build/per-mutator.md"
1512
},
1613
"tmpDir": "/tmp/infection",
17-
"minMsi": 80,
14+
"minMsi": 90,
15+
"minCoveredMsi": 95,
1816
"mutators": {
1917
"@default": true
2018
},
2119
"testFramework":"phpunit",
2220
"testFrameworkOptions": "-vvv"
23-
}
21+
}

0 commit comments

Comments
 (0)