Merge pull request #213 from prezly/master #105
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-coverage | |
on: [ push ] | |
jobs: | |
test-php: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
php-versions: [ "7.4", "8.0", "8.1" ] | |
phpunit-versions: [ "9" ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: php-actions/composer@v6 | |
with: | |
php_version: "${{ matrix.php-versions }}" | |
dev: yes | |
interaction: no | |
- name: PHPUnit Tests php | |
uses: php-actions/phpunit@v2 | |
with: | |
version: "${{ matrix.phpunit-versions }}" | |
php_version: "${{ matrix.php-versions }}" | |
php_extensions: xdebug | |
bootstrap: vendor/autoload.php | |
configuration: phpunit.xml | |
args: --coverage-clover=coverage.xml --exclude-group local-only | |
env: | |
XDEBUG_MODE: coverage | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml |