From 8ec5b89a25b62bc9e2d88332a4018a65f0334a46 Mon Sep 17 00:00:00 2001 From: Adeline Robinet Date: Tue, 12 Dec 2023 11:39:10 +0100 Subject: [PATCH] Symfony 7 (Review) --- .github/workflows/phpunit.yml | 24 ++++++++++++++++++------ composer.json | 20 ++++++++++---------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 41fa92c..5fc4798 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -19,34 +19,46 @@ jobs: fail-fast: false matrix: include: - # Lowest Deps + # Lowest Deps 5.4 - php: 8.0 symfony: 5.4.* coverage: 'none' composer-flags: '--prefer-stable --prefer-lowest' can-fail: false - # LTS with latest stable PHP + # LTS with latest stable PHP 5.4 - php: latest symfony: 5.4.* coverage: 'none' composer-flags: '--prefer-stable' can-fail: false + # Lowest Deps 6.4 + - php: 8.1 + symfony: 6.4.* + coverage: 'none' + composer-flags: '--prefer-stable --prefer-lowest' + can-fail: false + # LTS with latest stable PHP 6.4 + - php: latest + symfony: 6.4.* + coverage: 'none' + composer-flags: '--prefer-stable' + can-fail: false # Active release - php: latest - symfony: 6.2.* + symfony: 7.0.* coverage: pcov composer-flags: '--prefer-stable' can-fail: false # Development release - php: nightly - symfony: 6.3.*@dev + symfony: 7.1.*@dev coverage: 'none' composer-flags: '' can-fail: true steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 @@ -61,7 +73,7 @@ jobs: fail-fast: true - name: Set Composer stability - if: matrix.symfony == '6.3.*@dev' + if: matrix.php == 'nightly' run: "composer config minimum-stability dev" - name: Get composer cache directory diff --git a/composer.json b/composer.json index ecff625..1a2ffd2 100644 --- a/composer.json +++ b/composer.json @@ -22,22 +22,22 @@ ], "require": { "php": ">=7.4", - "symfony/config": "^6.4 || ^7.0", - "symfony/dependency-injection": "^6.4 || ^7.0", - "symfony/event-dispatcher": "^6.4 || ^7.0", - "symfony/framework-bundle": "^6.4 || ^7.0", - "symfony/http-foundation": "^6.4 || ^7.0", - "symfony/http-kernel": "^6.4 || ^7.0", + "symfony/config": "^5.4 || ^6.4 || ^7.0", + "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0", + "symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", + "symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0", + "symfony/http-foundation": "^5.4 || ^6.4 || ^7.0", + "symfony/http-kernel": "^5.4 || ^6.4 || ^7.0", "symfony/service-contracts": "^2.0 || ^3.2" }, "require-dev": { "doctrine/doctrine-bundle": "^2.8", "doctrine/orm": "^2.10", "phpunit/phpunit": "^9.5", - "symfony/browser-kit": "^6.4 || ^7.0", - "symfony/doctrine-bridge": "^5.4.7 || ^6.0", - "symfony/phpunit-bridge": "^6.4 || ^7.0", - "symfony/yaml": "^6.4 || ^7.0" + "symfony/browser-kit": "^5.4 || ^6.4 || ^7.0", + "symfony/doctrine-bridge": "^5.4.7 || ^6.0 || ^7.0", + "symfony/phpunit-bridge": "^5.4 || ^6.4 || ^7.0", + "symfony/yaml": "^5.4 || ^6.4 || ^7.0" }, "conflict": { "doctrine/dbal": "<3.3",