Skip to content

Commit

Permalink
feature: fully support symfony 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif committed Feb 5, 2025
1 parent e7a7ab4 commit f2e1150
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,49 @@ 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-plugins --no-interaction"
env:
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 ...
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
],
"require": {
"php": "^7.4 || ^8.0",
"symfony/form": "^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^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",
"symfony/http-kernel": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
Expand All @@ -36,19 +36,19 @@
"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/flex": "^1.21 || ^2.4",
"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 f2e1150

Please sign in to comment.