Fix the workflow for PSR-7 libraries

Ref: 3b4b4e287a

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2023-05-29 11:25:38 +02:00
parent 9a68412f4d
commit 98cd2ab1de
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -199,11 +199,9 @@ jobs:
php-version: ['7.2']
os: [ubuntu-latest]
php-extensions: ['mbstring, iconv, mysqli, zip, bz2']
psr-7-library: ['guzzlehttp/psr7']
psr-7-library: ['guzzlehttp/psr7', 'slim/psr7', 'nyholm/psr7']
include:
- {psr-7-library: 'laminas/laminas-diactoros', php-version: '7.4'}
# https://github.com/slimphp/Slim-Psr7/issues/284
- {psr-7-library: 'slim/psr7', php-version: '7.3'}
steps:
- name: Checkout code
uses: actions/checkout@v3
@ -230,7 +228,7 @@ jobs:
dependency-versions: highest
- name: Remove default PSR-7 implementation
run: composer remove nyholm/psr7
run: composer remove slim/psr7
- name: Add PSR-7 implementation
run: composer require ${{ matrix.psr-7-library }}