Skip to content

Commit

Permalink
adding support for symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
octoseth committed Dec 9, 2023
1 parent 5177edb commit 05e3653
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ jobs:

strategy:
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
symfony: ['4', '5', '6']
php: ["7.4", "8.0", "8.1", "8.2"]
symfony: ["4", "5", "6", "7"]
exclude:
- php: '7.4'
symfony: '6'
- php: "7.4"
symfony: "6"
- php: "7.4"
symfony: "7"
- php: "8.0"
symfony: "7"
- php: "8.1"
symfony: "7"

steps:
- name: Checkout Code
Expand Down Expand Up @@ -57,6 +63,14 @@ jobs:
command: composer require "symfony/filesystem:^6.0" "symfony/process:^6.0" "symfony/var-dumper:^6.0" --dev --no-update --no-interaction
if: "matrix.symfony == '6'"

- name: Select Symfony 7
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "symfony/filesystem:^7.0" "symfony/process:^7.0" "symfony/var-dumper:^7.0" --dev --no-update --no-interaction
if: "matrix.symfony == '7'"

- name: Install Dependencies
uses: nick-invision/retry@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"evenement/evenement": "^3.0.1",
"monolog/monolog": "^1.27.1 || ^2.8 || ^3.2",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"symfony/filesystem": "^4.4 || ^5.0 || ^6.0",
"symfony/filesystem": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/polyfill-mbstring": "^1.26",
"symfony/process": "^4.4 || ^5.0 || ^6.0"
"symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0"
},
"require-dev":{
"bamarni/composer-bin-plugin": "^1.8.2",
"phpunit/phpunit": "^9.6.3 || ^10.0.12",
"symfony/var-dumper": "^4.4 || ^5.0 || ^6.0"
"symfony/var-dumper": "^4.4 || ^5.0 || ^6.0 || ^7.0"
},
"autoload":{
"psr-4" : {
Expand Down

0 comments on commit 05e3653

Please sign in to comment.