File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,20 @@ jobs:
1212 strategy :
1313 matrix :
1414 operating-system : [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
15- php-versions : [ '7.2', '7.3', '7.4', '8.0' ]
15+ php-version : [ '7.2', '7.3', '7.4', '8.0' ]
1616 include :
1717 - operating-system : ubuntu-latest
18- php-versions : ' 7.2'
18+ php-version : ' 7.2'
19+ fail-fast : false
1920
2021 steps :
2122 - uses : actions/checkout@v2
2223
2324 - name : Setup PHP
2425 uses : shivammathur/setup-php@v2
2526 with :
26- php-version : ${{ matrix.php-versions }}
27+ php-version : ${{ matrix.php-version }}
28+ coverage : xdebug
2729
2830 - name : Validate composer.json and composer.lock
2931 run : composer validate
3638
3739 - name : Run PHPUnit test suite
3840 run : ./vendor/bin/phpunit
41+
42+ - name : Check code coverage
43+ run : ./vendor/bin/coverage clover.xml 100
44+ if : matrix.php-version != '8.0'
Original file line number Diff line number Diff line change 3434 "require-dev" : {
3535 "phpunit/phpunit" : " ^8" ,
3636 "mockery/mockery" : " ^1.3" ,
37- "symfony/yaml" : " ^5.2" ,
38- "vimeo/psalm" : " ^4.4"
37+ "symfony/yaml" : " ^4.4" ,
38+ "vimeo/psalm" : " ^4.4" ,
39+ "incompass/coverage" : " ^1.0"
3940 }
4041}
You can’t perform that action at this time.
0 commit comments