File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Code coverage
22
33on :
44 push :
5- branches :
5+ branches : ['*']
66
77jobs :
88 coverage :
@@ -21,10 +21,11 @@ jobs:
2121 - name : Install dependencies
2222 run : composer install --prefer-dist --no-progress --no-suggest
2323
24- - name : Test & publish code coverage
25- uses : paambaati/codeclimate-action@v3.0.0
26- env :
27- CC_TEST_REPORTER_ID : ${{ secrets.codeClimateReporterID }}
24+ - name : Run unit tests
25+ run : ./vendor/bin/phpunit
26+
27+ - name : Upload coverage report
28+ uses : qltysh/qlty-action/coverage@v2
2829 with :
29- coverageCommand : ./vendor/bin/phpunit --coverage-clover=clover.xml
30- debug : true
30+ token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
31+ files : build/clover.xml
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<phpunit
33 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/11 .0/phpunit.xsd"
4+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/12 .0/phpunit.xsd"
55 bootstrap =" vendor/autoload.php"
66 colors =" true"
77 timeoutForSmallTests =" 1"
88 timeoutForMediumTests =" 10"
99 timeoutForLargeTests =" 60"
1010 cacheDirectory =" .phpunit.cache" >
1111 <testsuites >
12- <testsuite name =" functional" >
13- <directory >tests/Functional</directory >
14- </testsuite >
12+ <testsuite name =" functional" >
13+ <directory >tests/Functional</directory >
14+ </testsuite >
1515 </testsuites >
1616 <logging >
17- <junit outputFile =" build/phpunit" />
17+ <junit outputFile =" build/phpunit" />
1818 </logging >
1919 <coverage >
20- <report >
21- <html outputDirectory =" build/coverage" lowUpperBound =" 35" highLowerBound =" 70" />
22- </report >
20+ <report >
21+ <clover outputFile =" build/clover.xml" />
22+ <html outputDirectory =" build/coverage" lowUpperBound =" 35" highLowerBound =" 70" />
23+ </report >
2324 </coverage >
2425 <source >
25- <include >
26- <directory suffix =" .php" >src</directory >
27- </include >
26+ <include >
27+ <directory suffix =" .php" >src</directory >
28+ </include >
2829 </source >
2930</phpunit >
You can’t perform that action at this time.
0 commit comments