Skip to content

Commit

Permalink
Add Symfony 7 support (#1892)
Browse files Browse the repository at this point in the history
* Add Symfony 7 support

* use 2 versions of brianium/paratest

* downgrade some of locked symfony dependencies to 5.4

* remove brianium/paratest as it blocks testing against symfony 7 and uses locally only

* fix tempnam method signature

* support OutputInteface from symfony 5 and symfony >6

* fix autoreview

* update symfony dev dependencies to support symfony 7.0

* update phpunit to latest 9.6 as current not compatible with paratest 6.11, revert brianium/paratest removal
  • Loading branch information
sidz committed Nov 1, 2023
1 parent b378ccc commit 8e52866
Show file tree
Hide file tree
Showing 8 changed files with 386 additions and 229 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ jobs:
php-version: [ '8.1', '8.2', '8.3' ]
dependencies: [ locked, lowest, highest ]
coverage-driver: [ pcov, xdebug ]
symfony-version: [ '5.4.*', '6.*.*' ]
symfony-version: [ '5.4.*', '6.*.*', '7.*.*' ]
include:
- operating-system: windows-latest
php-version: '8.1'
dependencies: locked
coverage-driver: xdebug
symfony-version: '5.4.*'
exclude:
- php-version: '8.1'
symfony-version: '7.*.*'
- dependencies: 'locked'
symfony-version: '7.*.*'

name: Tests on ${{ matrix.operating-system }} with PHP ${{ matrix.php-version }} (${{ matrix.dependencies }}; Symfony ${{ matrix.symfony-version }}), using ${{ matrix.coverage-driver }}

Expand All @@ -49,8 +54,11 @@ jobs:

- name: Configure for PHP >= 8.3
if: "matrix.php-version >= '8.3'"
run: |
composer config platform.php 8.2.99
run: composer config platform.php 8.2.99

- name: Configure minimum-stability
if: matrix.symfony-version == '7.*.*'
run: composer config minimum-stability dev

- name: Enforce the Symfony version used
if: matrix.dependencies != 'locked'
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
"sanmai/later": "^0.1.1",
"sanmai/pipeline": "^5.1 || ^6",
"sebastian/diff": "^3.0.2 || ^4.0 || ^5.0",
"symfony/console": "^5.4 || ^6.0",
"symfony/filesystem": "^5.4 || ^6.0",
"symfony/finder": "^5.4 || ^6.0",
"symfony/process": "^5.4 || ^6.0",
"symfony/console": "^5.4 || ^6.0 || ^7.0",
"symfony/filesystem": "^5.4 || ^6.0 || ^7.0",
"symfony/finder": "^5.4 || ^6.0 || ^7.0",
"symfony/process": "^5.4 || ^6.0 || ^7.0",
"thecodingmachine/safe": "^2.1.2",
"webmozart/assert": "^1.11"
},
Expand All @@ -74,7 +74,7 @@
},
"require-dev": {
"ext-simplexml": "*",
"brianium/paratest": "^6.3",
"brianium/paratest": "^6.11",
"fidry/makefile": "^0.2.0",
"helmich/phpunit-json-assert": "^3.0",
"phpspec/prophecy": "^1.15",
Expand All @@ -84,11 +84,11 @@
"phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/phpstan-strict-rules": "^1.1.0",
"phpstan/phpstan-webmozart-assert": "^1.0.2",
"phpunit/phpunit": "^9.5.5",
"phpunit/phpunit": "^9.6",
"rector/rector": "^0.16.0",
"sidz/phpstan-rules": "^0.4.0",
"symfony/phpunit-bridge": "^5.4 || ^6.0",
"symfony/yaml": "^5.4 || ^6.0",
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0",
"symfony/yaml": "^5.4 || ^6.0 || ^7.0",
"thecodingmachine/phpstan-safe-rule": "^1.2.0"
},
"config": {
Expand Down

0 comments on commit 8e52866

Please sign in to comment.