add support for large exclusion patterns and associated tests #2177
Workflow file for this run
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: Coverage | |
on: | |
push: | |
branches: [ 'master', '2.x', '3.x' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.3'] | |
setup: ['stable'] | |
name: PHP ${{ matrix.php }} - ${{ matrix.setup }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: json | |
tools: composer:v2 | |
coverage: xdebug | |
- name: Imagick SVG support | |
run: sudo apt-get install libmagickcore-6.q16-3-extra | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v4 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-coverage-${{ matrix.php }}-${{ matrix.setup }}-${{ hashFiles('composer.json') }} | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: | | |
composer require scrutinizer/ocular --no-update --no-interaction --dev | |
composer update --prefer-dist --no-progress --prefer-${{ matrix.setup }} | |
- name: Coverage | |
run: vendor/bin/paratest --coverage-clover=coverage.xml --coverage-text --coverage-html=coverage | |
env: | |
XDEBUG_MODE: coverage | |
- name: Archive Code Coverage Results | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.xml | |
disable_search: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload Code Coverage To Scrutinizer | |
run: vendor/bin/ocular code-coverage:upload --format=php-clover coverage.xml |