Skip to content

Commit

Permalink
Merge pull request #717 from KnpLabs/symfony6
Browse files Browse the repository at this point in the history
allow Symfony 6
  • Loading branch information
garak authored Oct 30, 2021
2 parents d5608ab + b0e1467 commit 216b9d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
- description: 'Symfony 4.4'
php: '7.3'
composer_option: '--prefer-lowest'
- description: 'Symfony 5.1'
- description: 'Symfony 5.3'
php: '7.4'
symfony: 5.1.*
- description: 'Symfony 5.2'
symfony: 5.3.*
- description: 'Symfony 6.0'
php: '8.0'
symfony: 5.2.*
symfony: 6.0.*-dev
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
steps:
- name: Checkout
Expand All @@ -58,6 +58,9 @@ jobs:
php-version: ${{ matrix.php }}
- run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
if: contains(matrix.symfony, '-dev')
- run: composer config minimum-stability dev
- run: composer config prefer-stable true
if: matrix.symfony
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: vendor/bin/phpunit
Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"require": {
"php": "^7.3 || ^8.0",
"knplabs/knp-components": "^2.4 || ^3.0",
"symfony/config": "^4.4 || ^5.0",
"symfony/dependency-injection": "^4.4 || ^5.0",
"symfony/event-dispatcher": "^4.4 || ^5.0",
"symfony/http-foundation": "^4.4 || ^5.0",
"symfony/http-kernel": "^4.4 || ^5.0",
"symfony/routing": "^4.4 || ^5.0",
"symfony/translation": "^4.4 || ^5.0",
"symfony/config": "^4.4 || ^5.3 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.3 || ^6.0",
"symfony/event-dispatcher": "^4.4 || ^5.3 || ^6.0",
"symfony/http-foundation": "^4.4 || ^5.3 || ^6.0",
"symfony/http-kernel": "^4.4 || ^5.3 || ^6.0",
"symfony/routing": "^4.4 || ^5.3 || ^6.0",
"symfony/translation": "^4.4 || ^5.3 || ^6.0",
"twig/twig": "^2.0 || ^3.0"
},
"require-dev": {
"phpstan/phpstan": "^0.12.93",
"phpunit/phpunit": "^8.5 || ^9.4",
"symfony/expression-language": "^4.4 || ^5.0",
"symfony/templating": "^4.4 || ^5.0"
"phpunit/phpunit": "^8.5 || ^9.5",
"symfony/expression-language": "^4.4 || ^5.3 || ^6.0",
"symfony/templating": "^4.4 || ^5.3 || ^6.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 216b9d5

Please sign in to comment.