Skip to content

Commit

Permalink
feature: fully support symfony 7.x (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif authored Feb 6, 2025
1 parent 52e4aa2 commit 5b0063f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,50 @@ concurrency:
jobs:
build-test:
runs-on: ubuntu-latest
name: 'PHPUnit (PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} + ${{ matrix.dependencies }} deps, ES ${{ matrix.elasticsearch }})'
env:
SYMFONY_REQUIRE: "${{ matrix.symfony }}"
name: 'PHPUnit (PHP ${{ matrix.php-version }}, Symfony ${{ matrix.symfony-version }} + ${{ matrix.dependencies }} deps)'
strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
php-version:
- '8.1'
- '8.2'
symfony:
- '5.4.*'
- '6.3.*'
- '8.4'
symfony-version:
- '^5.4'
- '^6.4'
- '^7.2'
dependencies:
- 'highest'
exclude:
- php-version: '8.1'
symfony-version: '^7.2'
include:
- php: '7.4'
- php-version: '7.4'
symfony-version: '^4.4'
dependencies: 'highest'
- php-version: '7.4'
symfony-version: '^5.0'
dependencies: 'lowest'
exclude:
- php: '7.4'
dependencies: 'highest'
steps:
- name: 'Checkout'
uses: actions/checkout@v3

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php }}'
php-version: '${{ matrix.php-version }}'
coverage: 'none'
extensions: 'curl, json, intl, mbstring, mongodb, openssl'
tools: 'composer:v2, flex'
extensions: 'curl, json, intl, mbstring, mongodb, openssl'

- name: 'Install Composer dependencies'
uses : 'ramsey/composer-install@v2'
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--no-interaction"
composer-options: "--no-interaction"
env:
COMPOSER_FUND: '0'
SYMFONY_REQUIRE: '${{ matrix.symfony-version }}'

# - uses: php-actions/phpunit@v3
# with:
# version
- name: 'Run unit tests'
run: |
vendor/bin/phpunit
# ... then your own project steps ...
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"require": {
"php": "^7.4 || ^8.0",
"symfony/form": "^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/form": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/config": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/http-foundation": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
Expand All @@ -36,19 +36,18 @@
"twig/twig": "^2.14 || ^3.0"
},
"require-dev": {
"symfony/framework-bundle": "^4.3 || ^5.0 || ^6.0",
"symfony/browser-kit": "^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/templating": "^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/expression-language": "^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/browser-kit": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/expression-language": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^4.3 || ^5.0 || ^6.0 || ^7.0",
"symfony/security-bundle": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/twig-bundle": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^9.5",
"friendsofphp/php-cs-fixer": "^2.0",
"friendsofphp/php-cs-fixer": "^3.0",
"php-coveralls/php-coveralls": "^2.0",
"doctrine/orm": "~2.10,>=2.10.0",
"doctrine/mongodb-odm": "^2.2",
"rector/rector": "^0.12.13",
"dg/bypass-finals": "^1.3",
"symfony/security-bundle": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/twig-bundle": "^3.0 || ^4.0 || ^5.0",
"doctrine/doctrine-bundle": "^2.5"
},
"suggest": {
Expand Down

0 comments on commit 5b0063f

Please sign in to comment.