Skip to content

Imports the latest fixes by gjuric #4

Imports the latest fixes by gjuric

Imports the latest fixes by gjuric #4

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
ewz:
name: Symfony ${{ matrix.symfony }} (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2, 8.3, 8.4, 8.5 ]
symfony: [ 5.4, 6.4, 7.4, 8.0 ]
exclude:
# Symfony 7 requires PHP >= 8.2
- php: 8.1
symfony: 7.4
# Symfony 8 requires PHP >= 8.4
- php: 8.1
symfony: 8.0
- php: 8.2
symfony: 8.0
- php: 8.3
symfony: 8.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
- name: Install dependencies
run: |
composer require "symfony/form:^${{ matrix.symfony }}" --no-update
composer require "symfony/framework-bundle:^${{ matrix.symfony }}" --no-update
composer require "symfony/security-bundle:^${{ matrix.symfony }}" --no-update
composer require "symfony/validator:^${{ matrix.symfony }}" --no-update
- name: Install dependencies PHP
run: |
composer install
- name: Run tests
run: vendor/bin/phpunit