Skip to content

see if codecov can negotiate the two reports #116

see if codecov can negotiate the two reports

see if codecov can negotiate the two reports #116

Workflow file for this run

name: Unit Tests
on: [push]
env:
CODECOV_TOKEN: 0b73aafa-099e-449b-8682-3afe35bde014
jobs:
run:
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ 'ubuntu-latest', 'windows-latest' ]
php-versions: [ '8.1', '8.3' ]
steps:
- name: Checkout Source.
uses: actions/checkout@v2
- name: Setup PHP 8.1
if: ${{ matrix.php-versions == '8.1' }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
extensions: mbstring, intl
- name: Run PHPUnit 9
if: ${{ matrix.php-versions == '8.1' }}
run: |
composer install
php vendor/bin/phpunit tests --bootstrap vendor/autoload.php --coverage-clover ./coverage.xml
- name: Push PHPUnit 9 to Codecov
if: ${{ matrix.php-versions == '8.1' && matrix.operating-system == 'ubuntu-latest' }}
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
verbose: true
- name: Setup PHP 8.3
if: ${{ matrix.php-versions == '8.3' }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
extensions: mbstring, intl
- name: Run PHPUnit 11
if: ${{ matrix.php-versions == '8.3' }}
run: |
composer install
php phpunit11.phar -c ./phpunit11.xml --coverage-clover ./coverage.xml
- name: Push to Codecov Probably
if: ${{ matrix.php-versions == '8.3' && matrix.operating-system == 'ubuntu-latest' }}
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
verbose: true