Bump actions/cache from 3 to 4 #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Coverage | |
on: [workflow_dispatch, push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
name: Test coverage | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
extensions: mbstring, intl | |
ini-values: post_max_size=256M, short_open_tag=On | |
coverage: xdebug | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Test coverage | |
run: | | |
vendor/bin/phpunit --coverage-clover clover.xml --coverage-filter src | |
echo "Upload results to Scrutinizer-ci" | |
vendor/bin/ocular code-coverage:upload --format=php-clover clover.xml |