Skip to content

Add support for Symfony Form inherit_data (#34) #107

Add support for Symfony Form inherit_data (#34)

Add support for Symfony Form inherit_data (#34) #107

Workflow file for this run

name: "CI Tests"
on:
pull_request:
push:
env:
fail-fast: true
PHPUNIT_FLAGS: "-v"
SYMFONY_DEPRECATIONS_HELPER: weak
jobs:
build:
runs-on: ubuntu-latest
name: PHP v${{ matrix.php }}, Symfony v${{ matrix.symfony }}
strategy:
fail-fast: false
matrix:
include:
- { php: 8.2, symfony: "6.4.*", composer-flags: '--prefer-stable' }
- { php: 8.2, symfony: "7.0.*", composer-flags: '--prefer-stable' }
- { php: 8.3, symfony: "6.4.*", composer-flags: '--prefer-stable' }
- { php: 8.3, symfony: "7.0.*", composer-flags: '--prefer-stable' }
steps:
- uses: actions/checkout@v2
- name: "Installing php"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl,mbstring,xdebug
ini-values: date.timezone="Europe/Paris"
coverage: xdebug
tools: "composer:v2,flex"
- name: Show PHP version
run: php -v && composer -V
- name: Download Composer cache dependencies from cache
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: "Require symfony/messenger"
run: "composer require --dev symfony/doctrine-messenger --no-update"
if: "${{ startsWith(matrix.symfony, '5.4') }}"
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ matrix.os }}-composer-
- name: Install dependencies
run: |
perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json
composer update ${{ matrix.composer-flags }} --prefer-dist
env:
SYMFONY_REQUIRE: "${{ matrix.symfony }}"
- name: "Run PHPUnit Tests"
run: "composer test"