Skip to content

Commit

Permalink
Merge pull request #212 from cebe/symfony7
Browse files Browse the repository at this point in the history
Symfony7
  • Loading branch information
cebe authored Nov 14, 2024
2 parents ae184f3 + 2ebe618 commit 2db31bf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
42 changes: 26 additions & 16 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ jobs:
matrix:
os: [ubuntu-latest]
php:
- "7.1"
- "7.2"
- "7.3"
#- "7.1"
#- "7.2"
#- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
dependencies:
- "lowest"
- "highest"
symfony-yaml: ['^3.4', '^4', '^5', '^6']
#symfony-yaml: ['^3.4', '^4', '^5', '^6', '^7']
symfony-yaml: ['^5', '^6', '^7']
include:
- os: "windows-latest"
php: "8.0"
Expand All @@ -35,22 +38,29 @@ jobs:
symfony-yaml: '^5'
exclude:
# symfony/yaml v5 does not run on PHP 7.1
- php: '7.1'
symfony-yaml: '^5'
#- php: '7.1'
# symfony-yaml: '^5'
# symfony/yaml v6 does not run on PHP 7.*
- php: '7.1'
symfony-yaml: '^6'
- php: '7.2'
symfony-yaml: '^6'
- php: '7.3'
symfony-yaml: '^6'
#- php: '7.1'
# symfony-yaml: '^6'
#- php: '7.2'
# symfony-yaml: '^6'
#- php: '7.3'
# symfony-yaml: '^6'
- php: '7.4'
symfony-yaml: '^6'
# symfony/yaml v3.4 is not compatible with PHP 8.0 but has no upper-bound, so it installs on it
# symfony/yaml v7 does not run on PHP <8.2
- php: '7.4'
symfony-yaml: '^7'
- php: '8.0'
symfony-yaml: '^3.4'
symfony-yaml: '^7'
- php: '8.1'
symfony-yaml: '^3.4'
symfony-yaml: '^7'
# symfony/yaml v3.4 is not compatible with PHP 8.0 but has no upper-bound, so it installs on it
#- php: '8.0'
# symfony-yaml: '^3.4'
#- php: '8.1'
# symfony-yaml: '^3.4'

runs-on: ${{ matrix.os }}

Expand All @@ -69,7 +79,7 @@ jobs:

- name: Require newer phpunit/phpunit version
run: "composer require phpunit/phpunit '^9.5' --dev --no-interaction --ansi --no-install"
if: matrix.php == '8.1'
if: matrix.php == '8.1' || matrix.php == '8.2' || matrix.php == '8.3'

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require": {
"php": ">=7.1.0",
"ext-json": "*",
"symfony/yaml": "^3.4 || ^4 || ^5 || ^6",
"symfony/yaml": "^3.4 || ^4 || ^5 || ^6 || ^7.0",
"justinrainbow/json-schema": "^5.2"
},
"require-dev": {
Expand Down

0 comments on commit 2db31bf

Please sign in to comment.