Skip to content

Test against PHP 8.4 & Symfony 7.1 + 7.2 #15

Test against PHP 8.4 & Symfony 7.1 + 7.2

Test against PHP 8.4 & Symfony 7.1 + 7.2 #15

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.0.*'
- '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@v4
if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*'