Skip to content

Commit

Permalink
Allow symfony 7 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Dec 3, 2023
1 parent 3664a19 commit 9a4960d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
name: PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }}
runs-on: ubuntu-latest

env:
SYMFONY_REQUIRE: ${{matrix.symfony-require}}

strategy:
matrix:
php-version:
Expand All @@ -19,9 +22,13 @@ jobs:
- 8.2
- 8.3
dependencies: [highest]
symfony-require: ['']
include:
- php-version: 8.0
dependencies: lowest
- php-version: '8.2'
dependencies: highest
symfony-require: 7.0.*

steps:
- name: Checkout
Expand All @@ -35,6 +42,14 @@ jobs:
tools: composer:v2
ini-file: development

- name: Globally install symfony/flex
if: matrix.symfony-require != ''
run: |
composer config minimum-stability dev
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer remove maglnet/composer-require-checker --dev --no-update
- name: Install Composer dependencies ${{ matrix.dependencies }}
uses: ramsey/composer-install@v2
with:
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"ext-ctype": "*",
"ext-json": "*",
"composer-runtime-api": "^2.0.0",
"symfony/console": "^5.4.9 || ^6.0",
"symfony/finder": "^5.4 || ^6.0",
"symfony/console": "^5.4.9 || ^6.0 || ^7.0",
"symfony/finder": "^5.4 || ^6.0 || ^7.0",
"twig/twig": "^2.14.0 || ^3.0.5",
"webmozart/assert": "^1.10"
},
Expand All @@ -35,9 +35,9 @@
"psalm/plugin-phpunit": "^0.18.4",
"psalm/plugin-symfony": "^5.0.0",
"rector/rector": "^0.18.0",
"symfony/filesystem": "^5.4 || ^6.0",
"symfony/process": "^5.4 || ^6.0",
"symfony/twig-bridge": "^5.4 || ^6.0",
"symfony/filesystem": "^5.4 || ^6.0 || ^7.0",
"symfony/process": "^5.4 || ^6.0 || ^7.0",
"symfony/twig-bridge": "^5.4 || ^6.0 || ^7.0",
"symfony/ux-twig-component": "^2.2.0",
"twig/cache-extra": "^3.2",
"vimeo/psalm": "^5.2.0"
Expand Down

0 comments on commit 9a4960d

Please sign in to comment.