[FIX] Silence Passing null to class_exists() deprecation warning #565
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: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
pull_request: | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
php: ['8.0', '8.1', '8.2'] | |
doctrine: ['2.14'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
ini-values: error_reporting=E_ALL | |
tools: phpunit, git | |
coverage: xdebug | |
- name: Install dependencies for doctrine/orm ${{ matrix.doctrine }} | |
run: composer require --no-progress --no-scripts --no-plugins -v -W doctrine/orm "~${{ matrix.doctrine }}.0" | |
- name: PHPUnit | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-text | |
- uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml |