Skip to content

[Maintenance] Remove the changelog file (#474) #2219

[Maintenance] Remove the changelog file (#474)

[Maintenance] Remove the changelog file (#474) #2219

Workflow file for this run

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 }}${{ matrix.symfony != '' && format(', Symfony {0}', matrix.symfony) || '' }}${{ matrix.currency-bundle != '' && format(', CurrencyBundle {0}', matrix.currency-bundle) || '' }}${{ matrix.postgres != '' && format(', PostgresSQL {0}', matrix.postgres) || '' }}"
strategy:
fail-fast: false
matrix:
php: ["8.2", "8.3", "8.4"]
postgres: [""]
minimum_stability: [""]
symfony: ["^6.4", "^7.2"]
include:
-
php: 8.3
symfony: "^7.2"
postgres: "13.3"
-
php: 8.3
symfony: "^7.2"
postgres: "14.0"
-
php: 8.3
symfony: "7.4.*"
-
php: 8.4
symfony: "8.0.*"
steps:
-
uses: actions/checkout@v4
-
name: Change minimum-stability
if: matrix.minimum_stability != ''
run: |
composer config minimum-stability ${{ matrix.minimum_stability }}
composer config prefer-stable true
(cd src/Component && composer config minimum-stability ${{ matrix.minimum_stability }})
(cd src/Component && composer config prefer-stable true)
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
tools: 'composer:v2, flex'
-
name: Setup PostgresSQL
if: matrix.postgres != ''
uses: harmon758/postgresql-action@v1
with:
postgresql version: "${{ matrix.postgres }}"
postgresql password: "postgres"
-
name: Restrict Symfony version
if: matrix.symfony != ''
run: |
composer config extra.symfony.require "${{ matrix.symfony }}"
(cd src/Component && composer config extra.symfony.require "${{ matrix.symfony }}")
-
name: Remove Doctrine PHPCR ODM on Symfony 8
if: matrix.symfony == '8.0.*'
run: |
composer remove --dev doctrine/phpcr-odm --no-update --no-scripts
-
name: Require sylius/currency-bundle
if: matrix.currency-bundle != ''
run: |
composer require "sylius/currency-bundle:${{ matrix.currency-bundle }}" --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 tests/Application && bin/console doctrine:schema:create)
-
name: Run analysis
run: |
composer analyse
(cd src/Component && composer validate --strict)
-
name: Run lint container
run: (cd tests/Application && bin/console lint:container)
-
name: Run tests for grids with php config
run: |
(cd tests/Application && bin/console cache:clear --env=test_grids_with_php_config)
composer test-php-config
-
name: Run tests for grids with yaml config
run: |
(cd tests/Application && bin/console cache:clear --env=test_grids_with_yaml_config)
composer test-yaml-config
-
name: Run tests with grids as services
run: |
(cd tests/Application && bin/console cache:clear --env=test_grids_as_service)
composer test-with-grids-as-service
-
name: Run tests with PostgresSQL
if: matrix.postgres != ''
run: |
(cd tests/Application && bin/console cache:clear --env=test_with_postgres)
(cd tests/Application && bin/console doctrine:database:create --env=test_with_postgres)
(cd tests/Application && bin/console doctrine:schema:create --env=test_with_postgres)
composer test-with-postgres
-
name: Run lint container without Doctrine
if: false # disable it for now
run: |
(cd tests/Application && rm config/packages/doctrine.yaml)
APP_ENV=test_without_doctrine composer remove --dev doctrine/*
(cd tests/Application && bin/console lint:container --env=test_without_doctrine)
-
name: Run lint container without maker bundle
run: |
APP_ENV=test_without_maker composer remove --dev symfony/maker-bundle
(cd tests/Application && bin/console lint:container --env=test_without_maker)
tests_with_skeleton:
runs-on: ubuntu-latest
name: "Tests with the Symfony Skeleton PHP ${{ matrix.php }}${{ matrix.skeleton != '' && format(', Skeleton {0}', matrix.skeleton) || '' }}"
strategy:
fail-fast: false
matrix:
php: ["8.3"]
skeleton: ["^6", "^7"]
steps:
-
uses: actions/checkout@v4
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
-
name: Create-project with skeleton
run: |
composer create-project --ansi "symfony/skeleton:${{ matrix.skeleton }}" skeleton_app
cd skeleton_app
composer config extra.symfony.allow-contrib true
composer config repositories.local '{"type": "path", "url": "../", "options": {"symlink": true}}' --json
composer require -W --ansi sylius/grid-bundle "*@dev"