Change logger signature to fix php 8.4 deprecation (#52) #68
This file contains hidden or 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: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 10 | |
| matrix: | |
| include: | |
| - php-version: '7.3' | |
| symfony-version: '4.4.*' | |
| - php-version: '7.4' | |
| symfony-version: '5.4.*' | |
| - php-version: '8.0' | |
| symfony-version: '5.4.*' | |
| - php-version: '8.0' | |
| symfony-version: '6.0.*' | |
| steps: | |
| - name: Set up PHP | |
| uses: shivammathur/[email protected] | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: pcov | |
| tools: flex | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Download dependencies | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | |
| run: | | |
| composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable | |
| - name: Run tests | |
| run: ./vendor/bin/simple-phpunit | |
| lowest: | |
| name: Lowest deps | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up PHP | |
| uses: shivammathur/[email protected] | |
| with: | |
| php-version: 7.3 | |
| coverage: pcov | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Download dependencies | |
| run: | | |
| composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --prefer-lowest | |
| - name: Run tests | |
| env: | |
| SYMFONY_DEPRECATIONS_HELPER: "max[self]=0" | |
| run: | | |
| ./vendor/bin/simple-phpunit -v --coverage-text --coverage-clover=coverage.xml | |
| wget https://scrutinizer-ci.com/ocular.phar | |
| php ocular.phar code-coverage:upload --format=php-clover coverage.xml |