Add ResourceToIdentifierCacheableTransformer form data transformer #2920
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: ~ | |
pull_request: ~ | |
release: | |
types: [created] | |
schedule: | |
- | |
cron: "0 1 * * 6" # Run at 1am every Saturday | |
workflow_dispatch: ~ | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, Twig ${{ matrix.twig }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- | |
php: 8.0 | |
symfony: ^4.4 | |
- | |
php: 8.0 | |
symfony: ^5.4 | |
twig: ^2.12 | |
- | |
php: 8.0 | |
symfony: ^5.4 | |
twig: ^3.0 | |
- | |
php: 8.1 | |
symfony: ^4.4 | |
- | |
php: 8.1 | |
symfony: ^5.4 | |
twig: ^2.12 | |
- | |
php: 8.1 | |
symfony: ^5.4 | |
twig: ^3.0 | |
steps: | |
- | |
uses: actions/checkout@v2 | |
- | |
name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
coverage: none | |
- | |
name: Restrict Symfony version | |
if: matrix.symfony != '' | |
run: | | |
composer global config --no-plugins allow-plugins.symfony/flex true | |
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10" | |
composer config extra.symfony.require "${{ matrix.symfony }}" | |
(cd src/Component && composer config extra.symfony.require "${{ matrix.symfony }}") | |
- | |
name: Restrict twig/twig version | |
if: matrix.twig != '' | |
run: composer require "twig/twig:${{ matrix.twig }}" --no-update --no-scripts | |
- | |
name: Install dependencies | |
run: | | |
composer update --no-scripts | |
(cd src/Component && composer update --no-scripts) | |
- | |
name: Prepare test application | |
run: | | |
(cd src/Bundle/test && bin/console doctrine:database:create) | |
(cd src/Bundle/test && bin/console doctrine:schema:create) | |
- | |
name: Run analysis | |
run: | | |
composer analyse | |
(cd src/Component && composer validate --strict) | |
- | |
name: Run component tests | |
run: (cd src/Component && vendor/bin/phpspec run) | |
- | |
name: Run bundle tests | |
run: composer test | |
- | |
name: Run lint container | |
run: (cd src/Bundle/test && bin/console lint:container) | |
- | |
name: Run state machine tests with winzou/state-machine package | |
run: | | |
sed -i -e 's/state_machine_component: symfony/state_machine_component: winzou/g' src/Bundle/test/config/packages/test/sylius_resource.yaml | |
(cd src/Bundle/test && bin/console cache:clear --env=test) | |
composer test | |
sed -i -e 's/state_machine_component: winzou/state_machine_component: symfony/g' src/Bundle/test/config/packages/test/sylius_resource.yaml | |
- | |
name: Run state machine tests with symfony/workflow package | |
run: | | |
sed -i -e 's/state_machine_component: winzou/state_machine_component: symfony/g' src/Bundle/test/config/packages/test/sylius_resource.yaml | |
(cd src/Bundle/test && bin/console cache:clear --env=test) | |
composer test | |
sed -i -e 's/state_machine_component: symfony/state_machine_component: winzou/g' src/Bundle/test/config/packages/test/sylius_resource.yaml | |
- | |
name: Run smoke tests without friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle packages | |
run: | | |
composer remove friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle --no-scripts | |
(cd src/Bundle/test && bin/console cache:clear --env=test_without_fosrest) | |
composer require friendsofsymfony/rest-bundle willdurand/hateoas-bundle jms/serializer-bundle --no-scripts | |
- | |
name: Run lint container without winzou/state-machine-bundle package | |
run: | | |
composer remove winzou/state-machine-bundle --no-scripts | |
(cd src/Bundle/test && bin/console cache:clear --env=test_without_state_machine) | |
(cd src/Bundle/test && bin/console lint:container --env=test_without_state_machine) | |
composer require winzou/state-machine-bundle --no-scripts | |
- | |
name: Run lint container without twig/twig package | |
run: | | |
composer remove symfony/twig-bundle --no-scripts | |
(cd src/Bundle/test && bin/console cache:clear --env=test_without_twig) | |
(cd src/Bundle/test && bin/console lint:container --env=test_without_twig) | |
composer require symfony/twig-bundle --no-scripts |