Skip to content

Commit e3658ce

Browse files
committed
feature: fully support symfony 7.x
1 parent e7a7ab4 commit e3658ce

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

.github/workflows/continuous-integration.yaml

+26-22
Original file line numberDiff line numberDiff line change
@@ -11,49 +11,53 @@ concurrency:
1111
jobs:
1212
build-test:
1313
runs-on: ubuntu-latest
14-
name: 'PHPUnit (PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }} + ${{ matrix.dependencies }} deps, ES ${{ matrix.elasticsearch }})'
15-
env:
16-
SYMFONY_REQUIRE: "${{ matrix.symfony }}"
14+
name: 'PHPUnit (PHP ${{ matrix.php-version }}, Symfony ${{ matrix.symfony-version }} + ${{ matrix.dependencies }} deps)'
1715
strategy:
16+
fail-fast: false
1817
matrix:
19-
php:
20-
- '7.4'
21-
- '8.0'
18+
php-version:
2219
- '8.1'
23-
- '8.2'
24-
symfony:
25-
- '5.4.*'
26-
- '6.3.*'
20+
- '8.4'
21+
symfony-version:
22+
- '^5.4'
23+
- '^6.4'
24+
- '^7.2'
2725
dependencies:
2826
- 'highest'
27+
exclude:
28+
- php-version: '8.1'
29+
symfony-version: '^7.2'
2930
include:
30-
- php: '7.4'
31+
- php-version: '7.4'
32+
symfony-version: '^4.4'
33+
dependencies: 'highest'
34+
- php-version: '7.4'
35+
symfony-version: '^5.0'
3136
dependencies: 'lowest'
32-
exclude:
33-
- php: '7.4'
34-
dependencies: 'highest'
3537
steps:
3638
- name: 'Checkout'
3739
uses: actions/checkout@v3
3840

3941
- name: 'Setup PHP'
4042
uses: 'shivammathur/setup-php@v2'
4143
with:
42-
php-version: '${{ matrix.php }}'
44+
php-version: '${{ matrix.php-version }}'
4345
coverage: 'none'
44-
extensions: 'curl, json, intl, mbstring, mongodb, openssl'
46+
tools: 'composer:v2, flex'
47+
extensions: 'curl, json, intl, mbstring, mongodb, openssl'
48+
49+
- name: 'Configure composer plugins'
50+
run: 'composer config --no-plugins allow-plugins.symfony/flex true'
4551

4652
- name: 'Install Composer dependencies'
4753
uses : 'ramsey/composer-install@v2'
4854
with:
4955
dependency-versions: "${{ matrix.dependencies }}"
50-
composer-options: "--no-interaction"
56+
composer-options: "--no-interaction"
57+
env:
58+
COMPOSER_FUND: '0'
59+
SYMFONY_REQUIRE: '${{ matrix.symfony-version }}'
5160

52-
# - uses: php-actions/phpunit@v3
53-
# with:
54-
# version
5561
- name: 'Run unit tests'
5662
run: |
5763
vendor/bin/phpunit
58-
59-
# ... then your own project steps ...

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
],
2626
"require": {
2727
"php": "^7.4 || ^8.0",
28-
"symfony/form": "^3.0 || ^4.0 || ^5.0 || ^6.0",
29-
"symfony/dependency-injection": "^3.0 || ^4.0 || ^5.0 || ^6.0",
28+
"symfony/form": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
29+
"symfony/dependency-injection": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
3030
"symfony/config": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
3131
"symfony/http-foundation": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
3232
"symfony/http-kernel": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
@@ -36,19 +36,19 @@
3636
"twig/twig": "^2.14 || ^3.0"
3737
},
3838
"require-dev": {
39-
"symfony/framework-bundle": "^4.3 || ^5.0 || ^6.0",
40-
"symfony/browser-kit": "^3.0 || ^4.0 || ^5.0 || ^6.0",
41-
"symfony/templating": "^3.0 || ^4.0 || ^5.0 || ^6.0",
42-
"symfony/expression-language": "^3.0 || ^4.0 || ^5.0 || ^6.0",
39+
"symfony/browser-kit": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
40+
"symfony/expression-language": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
41+
"symfony/flex": "^1.21 || ^2.4",
42+
"symfony/framework-bundle": "^4.3 || ^5.0 || ^6.0 || ^7.0",
43+
"symfony/security-bundle": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
44+
"symfony/twig-bundle": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
4345
"phpunit/phpunit": "^9.5",
44-
"friendsofphp/php-cs-fixer": "^2.0",
46+
"friendsofphp/php-cs-fixer": "^3.0",
4547
"php-coveralls/php-coveralls": "^2.0",
4648
"doctrine/orm": "~2.10,>=2.10.0",
4749
"doctrine/mongodb-odm": "^2.2",
4850
"rector/rector": "^0.12.13",
4951
"dg/bypass-finals": "^1.3",
50-
"symfony/security-bundle": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
51-
"symfony/twig-bundle": "^3.0 || ^4.0 || ^5.0",
5252
"doctrine/doctrine-bundle": "^2.5"
5353
},
5454
"suggest": {

0 commit comments

Comments
 (0)