File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 73
73
if : matrix.php == 'nightly'
74
74
run : composer install --prefer-dist --ignore-platform-req=php+
75
75
- name : Run PHPUnit
76
- run : composer run test:unit
77
- env :
78
- XDEBUG_MODE : coverage
76
+ run : composer run test:unit:cov
79
77
- name : Upload coverage results to Coveralls
80
78
env :
81
79
COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 33
33
"mikey179/vfsstream" : " ^1.6" ,
34
34
"php-coveralls/php-coveralls" : " ^2.5" ,
35
35
"friendsofphp/php-cs-fixer" : " ^3.16" ,
36
- "vimeo/psalm" : " ^6.0"
36
+ "vimeo/psalm" : " ^6.0" ,
37
+ "brianium/paratest" : " ^7.7"
37
38
},
38
39
"suggest" : {
39
40
"psr/http-message" : " ^2.0" ,
46
47
" @test:formatted" ,
47
48
" @test:lint"
48
49
],
49
- "test:unit" : " phpunit --coverage-clover=coverage.clover.xml --coverage-html cov" ,
50
+ "test:unit:setup-cov" : " @putenv XDEBUG_MODE=coverage" ,
51
+ "test:unit" : " paratest --functional" ,
52
+ "test:unit:cov" : [" @test:unit:setup-cov" , " @test:unit --coverage-clover=coverage.clover.xml --coverage-html cov" ],
50
53
"test:unit:slow" : " @test:unit --group slow" ,
54
+ "test:unit:slow:cov" : [" @test:unit:setup-cov" , " @test:unit --coverage-clover=coverage.clover.xml --coverage-html cov --group slow" ],
51
55
"test:unit:fast" : " @test:unit --exclude-group slow" ,
56
+ "test:unit:fast:cov" : [" @test:unit:setup-cov" , " @test:unit --coverage-clover=coverage.clover.xml --coverage-html cov --exclude-group slow" ],
52
57
"test:formatted" : " @format --dry-run --stop-on-violation --using-cache=no" ,
53
58
"test:lint" : " psalm --stats --show-info=true --find-unused-psalm-suppress" ,
54
59
"coverage:report" : " php-coveralls --coverage_clover=coverage.clover.xml --json_path=coveralls-upload.json --insecure" ,
You can’t perform that action at this time.
0 commit comments