Bump codecov/codecov-action from 4 to 5 #32
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: Continuous Integration | |
on: | |
pull_request: | |
branches: ['5.x', '4.x', '3.x'] | |
push: | |
branches: ['5.x', '4.x', '3.x'] | |
jobs: | |
phpunit: | |
name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }}) | |
runs-on: ubuntu-22.04 | |
env: | |
SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | |
strategy: | |
matrix: | |
php-version: | |
- '8.2' | |
- '8.3' | |
- '8.4' | |
symfony-version: | |
- '6.4.*' | |
- '7.1.*' | |
- '7.2.x-dev' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Install PHP with pcov | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: pcov | |
php-version: ${{ matrix.php-version }} | |
extensions: pdo_sqlite | |
- name: Install Symfony Flex | |
run: | | |
composer config --global --no-plugins allow-plugins.symfony/flex true | |
composer global require --no-progress --no-scripts --no-plugins symfony/flex | |
- name: Install Composer dependencies | |
uses: ramsey/composer-install@v3 | |
- name: Run PHPUnit | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v5 | |
if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*' |