File tree Expand file tree Collapse file tree 3 files changed +34
-36
lines changed
Expand file tree Collapse file tree 3 files changed +34
-36
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,25 @@ jobs:
1111
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v3
15+ with :
16+ fetch-depth : 0
1517
1618 - name : Setup PHP
1719 uses : shivammathur/setup-php@v2
1820 with :
19- php-version : 7.4
21+ php-version : 8.1
2022 tools : composer:v2
2123 coverage : pcov
2224
25+ - name : Install scrutinizer/ocular
26+ run : composer global require scrutinizer/ocular
27+
2328 - name : Install dependencies
2429 run : composer update --prefer-stable --prefer-dist --no-interaction --no-progress
2530
2631 - name : Execute tests
2732 run : vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.clover
2833
2934 - name : Send coverage to Scrutinizer
30- run : |
31- wget https://scrutinizer-ci.com/ocular.phar
32- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
35+ run : ~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
Original file line number Diff line number Diff line change 1313 ],
1414 "require" : {
1515 "php" : " ^7.2|^8.0" ,
16- "illuminate/notifications" : " ^6.0|^7.0|^8.0" ,
17- "illuminate/support" : " ^6.0|^7.0|^8.0" ,
16+ "illuminate/notifications" : " ^6.0|^7.0|^8.0|^9.0 " ,
17+ "illuminate/support" : " ^6.0|^7.0|^8.0|^9.0 " ,
1818 "interfax/interfax" : " ^1.1"
1919 },
2020 "require-dev" : {
2121 "mockery/mockery" : " ^1.0" ,
2222 "mpdf/mpdf" : " ^8.0" ,
23- "orchestra/testbench" : " ~ 4.0|~ 5.0|~6 .0" ,
23+ "orchestra/testbench" : " ^ 4.0|^ 5.0|^6.0|^7 .0" ,
2424 "phpunit/phpunit" : " ^8.0|^9.3.3"
2525 },
2626 "autoload" : {
3434 }
3535 },
3636 "scripts" : {
37- "test" : " vendor/bin/phpunit"
37+ "test" : [
38+ " @putenv XDEBUG_MODE=coverage" ,
39+ " vendor/bin/phpunit"
40+ ]
3841 },
3942 "config" : {
4043 "sort-packages" : true
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit bootstrap =" vendor/autoload.php"
3- backupGlobals =" false"
4- backupStaticAttributes =" false"
5- colors =" true"
6- verbose =" true"
7- convertErrorsToExceptions =" true"
8- convertNoticesToExceptions =" true"
9- convertWarningsToExceptions =" true"
10- processIsolation =" false"
11- stopOnFailure =" false" >
12- <testsuites >
13- <testsuite name =" InterFAX Test Suite" >
14- <directory >tests</directory >
15- </testsuite >
16- </testsuites >
17- <filter >
18- <whitelist >
19- <directory suffix =" .php" >src/</directory >
20- </whitelist >
21- </filter >
22- <logging >
23- <log type =" tap" target =" build/report.tap" />
24- <log type =" junit" target =" build/report.junit.xml" />
25- <log type =" coverage-html" target =" build/coverage" />
26- <log type =" coverage-text" target =" build/coverage.txt" />
27- <log type =" coverage-clover" target =" build/logs/clover.xml" />
28- </logging >
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" backupStaticAttributes =" false" colors =" true" verbose =" true" convertErrorsToExceptions =" true" convertNoticesToExceptions =" true" convertWarningsToExceptions =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
3+ <coverage >
4+ <include >
5+ <directory suffix =" .php" >src/</directory >
6+ </include >
7+ <report >
8+ <clover outputFile =" build/logs/clover.xml" />
9+ <html outputDirectory =" build/coverage" />
10+ <text outputFile =" build/coverage.txt" />
11+ </report >
12+ </coverage >
13+ <testsuites >
14+ <testsuite name =" InterFAX Test Suite" >
15+ <directory >tests</directory >
16+ </testsuite >
17+ </testsuites >
18+ <logging >
19+ <junit outputFile =" build/report.junit.xml" />
20+ </logging >
2921</phpunit >
You can’t perform that action at this time.
0 commit comments