Skip to content

PHP 7.4-8.4, Symfony 4, 5 compatibility #20

PHP 7.4-8.4, Symfony 4, 5 compatibility

PHP 7.4-8.4, Symfony 4, 5 compatibility #20

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
tests:
strategy:
fail-fast: true
matrix:
php:
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
symfony:
- ^3.4
- ~4.0
- ~4.1
- ~4.2
- ~4.3
- ^4.4
twig:
# - ^1.44.7
- ^2.0
# - ^3.0
experimental:
- false
name: 'PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, Twig ${{ matrix.twig }}'
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install symfony/flex
run: composer require --dev symfony/flex --no-progress --no-interaction --no-install --no-interaction
- name: Lock Symfony version in composer.json
run: composer config extra.symfony.require '${{ matrix.symfony }}' --no-interaction
- name: Lock Twig version in composer.json
run: |
composer require 'twig/twig: ${{ matrix.twig }}' --no-progress --no-interaction --no-install --no-interaction
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-interaction
- name: PHPUnit
run: vendor/bin/phpunit