Skip to content

Symfony 4 compatibility #12

Symfony 4 compatibility

Symfony 4 compatibility #12

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
tests:
strategy:
fail-fast: false
matrix:
php:
- 7.4
- 8.0
# - 8.1
# - 8.2
# - 8.3
# - 8.4
symfony:
- ^3.4
- ^4.4
# - ^5.4
name: 'PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}'
runs-on: ubuntu-latest
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
- name: Set platform to PHP 7.4
run: composer config platform.php 7.4
- name: Lock packages according to dependency matrix
run: |
composer require --ansi --no-scripts --update-with-all-dependencies --no-install \
'symfony/form: ${{ matrix.symfony }}' \
'symfony/framework-bundle: ${{ matrix.symfony }}'
rm composer.lock
composer require --ansi --no-scripts --update-with-all-dependencies --no-install --dev \
'symfony/browser-kit: ${{ matrix.symfony }}' \
'symfony/console: ${{ matrix.symfony }}' \
'symfony/twig-bundle: ${{ matrix.symfony }}' \
'symfony/phpunit-bridge: ${{ matrix.symfony }}' \
'symfony/css-selector: ${{ matrix.symfony }}'
rm composer.lock
- name: Install dependencies
run: composer install --ansi --prefer-dist --no-interaction --no-scripts
- name: PHPUnit
run: vendor/bin/phpunit