File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 44 pull_request :
55 paths-ignore : ['*.md']
66 push :
7- branches : [master]
87 paths-ignore : ['*.md']
98
109jobs :
3231 - name : Run PHPUnit tests and generate code coverage
3332 run : |
3433 composer analyse
35- phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml
34+ vendor/bin/phpunit
35+ test-coverage :
36+ name : Test (PHP ${{ matrix.php }})
37+ runs-on : ubuntu-latest
38+ strategy :
39+ matrix :
40+ php : [ 8.2 ]
41+ steps :
42+ - name : Checkout repository
43+ uses : actions/checkout@v2
44+ - name : Set up PHP
45+ uses : shivammathur/setup-php@v2
46+ with :
47+ php-version : ${{ matrix.php }}
48+ - name : Cache Composer dependencies
49+ uses : actions/cache@v1
50+ with :
51+ path : ~/.composer/cache/files
52+ key : php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
53+ restore-keys : php-${{ matrix.php }}-composer-
54+ - name : Install composer dependencies
55+ run : composer install --no-interaction --prefer-source
56+ - name : Run PHPUnit tests and generate code coverage
57+ run : |
58+ composer analyse
59+ vendor/bin/phpunit --coverage-clover=clover.xml
3660 - name : Upload code coverage results
3761 run : bash <(curl -s https://codecov.io/bash)
You can’t perform that action at this time.
0 commit comments