Skip to content

Commit

Permalink
Merge pull request #331 from KnpLabs/chore/support-symfony-7
Browse files Browse the repository at this point in the history
Chore/support symfony 7
  • Loading branch information
alexpozzi authored Dec 18, 2023
2 parents e74aba4 + d52813b commit 0080ff4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 38 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,31 @@ jobs:
fail-fast: false
matrix:
include:
- description: 'No Symfony specified'
php: '7.4'
- description: 'Lowest deps'
php: '7.4'
composer_option: '--prefer-lowest'
env:
SYMFONY_DEPRECATIONS_HELPER: max[self]=0
- description: 'PHP 8.0'
php: '8.0'
- description: 'PHP 8.1'
php: '8.1'
- description: 'PHP 8.2'
- description: 'Symfony 7.1 DEV'
php: '8.2'
- description: 'PHP 8.3'
symfony: '7.1.*@dev'
- description: 'Symfony 7.0'
php: '8.3'
- description: 'Dev deps'
php: '8.2'
dev: true
symfony: '7.0.*'
- description: 'Symfony 6.4'
php: '8.1'
symfony: '6.4.*'
- description: 'Symfony 6.0'
php: '8.3'
symfony: '6.0.*'
- description: 'Symfony 5.4'
php: '8.1'
symfony: '5.4.*'
- description: 'Symfony 5.0'
php: '8.3'
symfony: '5.0.*'
- description: 'Beta deps'
php: '8.1'
beta: true
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
steps:
- name: Checkout
uses: actions/checkout@v3
- run: |
phpenv config-rm xdebug.ini || true
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex 1.*
- name: Cache
uses: actions/cache@v3
with:
Expand All @@ -58,7 +57,9 @@ jobs:
- run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
if: matrix.symfony
- run: composer config minimum-stability dev && composer config prefer-stable true
if: matrix.dev
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: vendor/bin/simple-phpunit -v
- run: |
composer config minimum-stability dev
composer config prefer-stable true
if: matrix.beta
- run: composer update --prefer-dist --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: vendor/bin/phpunit
13 changes: 4 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
}
],
"require": {
"php": ">=7.4",
"symfony/framework-bundle": "^4.4|^5.1|^6.0",
"php": ">=8.1",
"symfony/framework-bundle": "^5.1|^6.0|^7.0",
"knplabs/knp-snappy": "^1.4.3"
},
"autoload": {
Expand All @@ -31,12 +31,7 @@
}
},
"require-dev": {
"symfony/asset": "^4.4|^5.1|^6.0",
"symfony/finder": "^4.4|^5.1|^6.0",
"symfony/phpunit-bridge": "^4.4|^5.1|^6.0",
"symfony/security-csrf": "^4.4|^5.1|^6.0",
"symfony/templating": "^4.4|^5.1|^6.0",
"symfony/validator": "^4.4|^5.1|^6.0",
"symfony/yaml": "^4.4|^5.1|^6.0"
"phpunit/phpunit": "^8.5",
"symfony/yaml": "^5.1|^6.0|^7.0"
}
}
6 changes: 1 addition & 5 deletions tests/fixtures/config/base.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
framework:
secret: ThisIsNotReallyASecretSoPleaseChangeIt
router: { resource: "%kernel.project_dir%/config/routing.yml", utf8: true }
validation: { enabled: true, enable_annotations: false }
http_method_override: false
framework: ~

0 comments on commit 0080ff4

Please sign in to comment.