Skip to content

Commit 97559be

Browse files
committed
Add support for Symfony 8
1 parent 82b64fa commit 97559be

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
composer-options: "--prefer-dist --ignore-platform-req=php+"
3434
- php-version: "8.5"
3535
composer-options: "--prefer-dist --ignore-platform-req=php+"
36-
36+
- php-version: "8.4"
37+
composer-options: "--prefer-dist --ignore-platform-req=php+"
38+
composer-minimum-stability: "dev"
39+
symfony-version: "8.0.x-dev"
3740

3841
steps:
3942
- name: "Checkout"
@@ -47,12 +50,20 @@ jobs:
4750
php-version: "${{ matrix.php-version }}"
4851
coverage: "pcov"
4952
ini-values: "zend.assertions=1"
53+
tools: flex
54+
55+
- name: Configure Composer minimum-stability
56+
if: matrix.composer-minimum-stability
57+
run: composer config minimum-stability ${{ matrix.composer-minimum-stability }}
58+
5059

5160
- name: "Install dependencies"
5261
uses: ramsey/composer-install@v3
5362
with:
5463
dependency-versions: ${{ matrix.deps }}
5564
composer-options: ${{ matrix.composer-options }}
65+
env:
66+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
5667

5768
- name: "Run PHPUnit"
5869
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ext-json": "*",
2424
"composer-plugin-api": "^2.0",
2525
"friendsofphp/php-cs-fixer": "^3.88",
26-
"symfony/console": "^5.4 || ^6.0 || ^7.0",
26+
"symfony/console": "^5.4 || ^6.0 || ^7.0 || ^8.0",
2727
"symfony/polyfill-php80": "^1.0"
2828
},
2929
"require-dev": {

0 commit comments

Comments
 (0)