Skip to content

Commit

Permalink
Test in multiple versions of PSR HTTP Message
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Sep 2, 2023
1 parent a5c5c22 commit 65097aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ jobs:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
psr-http-versions: [ '~1.0.0', '^1', '^2' ]
exclude:
- php-versions: '7.2'
psr-http-versions: '^2'
- php-versions: '7.3'
psr-http-versions: '^2'
- php-versions: '7.4'
psr-http-versions: '^2'

runs-on: ${{ matrix.operating-system }}

Expand All @@ -27,5 +35,10 @@ jobs:
- name: Install dependencies with composer
run: composer install

- name: Install PSR HTTP Message
run: |
rm composer.lock
composer require --with-all-dependencies psr/http-message:${{ matrix.psr-http-versions }}
- name: Run tests
run: make test
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "Utilities for working with Psr7 Http Messages",
"type": "library",
"require": {
"psr/http-message": "^1.0",
"psr/http-message": "^1 || ^2",
"php": ">=7.2"
},
"require-dev": {
"phpunit/phpunit": "^6.5 || ^9.3",
"php-mock/php-mock-phpunit": "^2.7",
"guzzlehttp/psr7": "^1.9",
"guzzlehttp/psr7": "^2.4",
"corpus/coding-standard": "^0.6.0",
"squizlabs/php_codesniffer": "^3.7",
"friendsofphp/php-cs-fixer": "^3.3",
Expand Down

0 comments on commit 65097aa

Please sign in to comment.