File tree Expand file tree Collapse file tree 3 files changed +52
-32
lines changed
Expand file tree Collapse file tree 3 files changed +52
-32
lines changed Original file line number Diff line number Diff line change 77 branches : [ master ]
88
99jobs :
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
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments