Skip to content

Commit 7562575

Browse files
committed
Add support for Symfony 8
1 parent 69d2761 commit 7562575

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- php: "8.2"
2020
- php: "8.3"
2121
- php: "8.4"
22+
- php: "8.4"
23+
symfony-version: 8.0.x-dev
24+
composer-stability: dev
2225
steps:
2326
- name: Checkout source
2427
uses: actions/checkout@v4
@@ -27,8 +30,18 @@ jobs:
2730
with:
2831
php-version: ${{ matrix.php }}
2932
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, log_errors_max_len=0
33+
- name: Install and configure Symfony Flex
34+
if: matrix.symfony-version
35+
run: |
36+
composer global require --no-progress --no-scripts --no-plugins symfony/flex
37+
composer global config --no-plugins allow-plugins.symfony/flex true
38+
- name: Configure Composer minimum-stability
39+
if: matrix.composer-stability
40+
run: composer config minimum-stability ${{ matrix.composer-stability }}
3041
- name: "Update composer dependencies"
3142
run: composer update -o --no-interaction --no-progress ${{ matrix.COMPOSER_FLAGS }}
43+
env:
44+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
3245
- name: Tests
3346
env:
3447
PHP_CS_FIXER_IGNORE_ENV: ${{ matrix.PHP_CS_FIXER_IGNORE_ENV }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.4 || ^8.0",
14-
"symfony/process": "^5.4 || ^6.4 || ^7.2"
14+
"symfony/process": "^5.4 || ^6.4 || ^7.2 || ^8.0"
1515
},
1616
"require-dev": {
1717
"friendsofphp/php-cs-fixer": "^3.75",

0 commit comments

Comments
 (0)