Send COverage-data to codecov #24
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] | |
name: Test on ${{ matrix.php-versions }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install Ghostscript | |
run: sudo apt-get install -y ghostscript | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: install dependencies | |
run: composer install | |
- name: Run Unit-Tests | |
run: ./vendor/bin/phpunit --testdox --coverage-text | |
coverage: | |
needs: test | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: install Ghostscript | |
run: sudo apt-get install -y ghostscript | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.3" | |
coverage: xdebug | |
- name: install dependencies | |
run: composer install | |
- name: install tools | |
run: composer install | |
- name: run testsuite | |
run: ./vendor/bin/phpunit --testdox --colors=always --coverage-clover clover.xml | |
- name: upload to codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
files: ./clover.xml |