Skip to content

Commit

Permalink
sf6
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Jan 9, 2023
1 parent 27f31b1 commit 6cc0183
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,21 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "7.2", "7.3", "7.4", "8.0" ]
php: [ "7.2", "7.3", "7.4", "8.0", "8.1" ]
composer_flags: [ "", "--prefer-lowest" ]
symfony_version: [ "3.4.*", "4.3.*", "4.4.*", "5.0.*"]
symfony_version: [ "^3.4", "^4.4", "^5.4", '^6.1']
exclude:
# - php: "8.0"
# symfony_version: "^3.4"

- php: "7.2"
symfony_version: "^6.1"
- php: "7.3"
symfony_version: "^6.1"
- php: "7.4"
symfony_version: "^6.1"
- php: "8.0"
symfony_version: "3.4.*"
- php: "8.0"
symfony_version: "4.3.*"
- php: "8.0"
composer_flags: "--prefer-lowest"
symfony_version: "^6.1"
name: PHP ${{ matrix.php }} SF ${{ matrix.symfony_version }} ${{ matrix.composer_flags}}
env:
PHP: ${{ matrix.os }}
Expand All @@ -40,8 +45,9 @@ jobs:
run: |
composer self-update
if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
if [ "$SYMFONY_VERSION" = "5.0.*" ]; then composer remove --dev "friendsofsymfony/oauth-server-bundle" --no-update; fi;
if [ "$PHP_VERSION" = "8.0" ]; then composer remove --dev "friendsofsymfony/oauth-server-bundle" --no-update; fi;
if [ "$SYMFONY_VERSION" = "^5.4" ] || [ "$SYMFONY_VERSION" = "^6.1" ] || [ "$PHP_VERSION" = "8.0" ] || [ "$PHP_VERSION" = "8.1" ]; then composer remove --dev "friendsofsymfony/oauth-server-bundle" --no-update; fi;
if [ "$PHP_VERSION" = "8.1" ] && [ "$SYMFONY_VERSION" = "^6.1" ]; then composer require --dev "phpunit/phpunit:^9.5" --no-update; fi;
if [ "$PHP_VERSION" = "8.1" ] && [ "$SYMFONY_VERSION" = "^6.1" ]; then composer require --dev "nikic/php-parser:^4.14" --no-update; fi;
COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
- name: Run tests
run: |
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
],
"require": {
"php": "^7.2|^8.0",
"symfony/framework-bundle": "^3.4.23|^4.3|^4.4|^5.0",
"symfony/framework-bundle": "^3.4.23|^4.4|^5.4.2|^6.1",
"sensio/framework-extra-bundle": "^3.0|^4.0|^5.0|^6.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0|^8.5|^9.0",
"psr/simple-cache": "^1.0",
"phpunit/phpunit": "^8.5.31|^9.5",
"psr/simple-cache": "^1.0|^2.0",
"doctrine/cache": "^1.5",
"psr/cache": "^1.0",
"psr/cache": "^1.0|^2.0",
"predis/predis": "^0.8|^1.1",
"friendsofsymfony/oauth-server-bundle": "^1.5"
},
Expand Down

0 comments on commit 6cc0183

Please sign in to comment.