Skip to content

Commit

Permalink
Allow psr/simple-cache ^2.0 and ^3.0 (#580) - fixes #522, #573
Browse files Browse the repository at this point in the history
* Allow psr/simple-cache ^2.0 and ^3.0

* Exclude psr/simple-cache:^3.0 on symfony:^4.4
  • Loading branch information
bastien-phi committed May 27, 2022
1 parent 295be3d commit 4697df8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/frameworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
version: ['^4.4', '@stable', '@dev'] # Test current LTS, current release, and future release
php: ['7.4', '8.0', '8.1']
composer-version: [v2]
include:
- version: '^4.4'
psr-simple-cache-version: '^1.0|^2.0'
- version: '@stable'
psr-simple-cache-version: '^1.0|^2.0|^3.0'
- version: '@dev'
psr-simple-cache-version: '^1.0|^2.0|^3.0'
env:
allow_failure: ${{ matrix.version == '@dev' }}
name: "Symfony skeleton:${{ matrix.version }} - PHP${{ matrix.php }} - Composer ${{ matrix.composer-version }}"
Expand Down Expand Up @@ -53,6 +60,10 @@ jobs:
composer config prefer-stable true
composer config minimum-stability dev
continue-on-error: ${{ env.allow_failure == 'true' }}
- name: Require psr/simple-cache
working-directory: ./project
run: composer require "psr/simple-cache:${{ matrix.psr-simple-cache-version }}"
continue-on-error: ${{ env.allow_failure == 'true' }}
- name: Install PHPInsights
working-directory: ./project
run: composer require --dev "nunomaduro/phpinsights:*" -n --ansi --with-all-dependencies
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"php-parallel-lint/php-parallel-lint": "^1.3",
"phploc/phploc": "^5.0|^6.0|^7.0",
"psr/container": "^1.0|^2.0",
"psr/simple-cache": "^1.0",
"psr/simple-cache": "^1.0|^2.0|^3.0",
"slevomat/coding-standard": "^7.0.8",
"squizlabs/php_codesniffer": "^3.5",
"symfony/cache": "^4.4|^5.0|^6.0",
Expand Down

0 comments on commit 4697df8

Please sign in to comment.