Skip to content

Commit

Permalink
chore: add testrun for "psr/http-message" v2
Browse files Browse the repository at this point in the history
remove special testrun in ci
  • Loading branch information
Chris8934 committed Mar 16, 2024
1 parent 56c1977 commit 764a2c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,6 @@ jobs:
- name: Execute tests
run: composer test

psr-7_2:
name: PHP PSR-7 2.0
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer
coverage: none

- name: Install dependencies
run: |
rm src/MessageFactory/SlimMessageFactory.php src/StreamFactory/SlimStreamFactory.php src/UriFactory/SlimUriFactory.php spec/MessageFactory/SlimMessageFactorySpec.php spec/StreamFactory/SlimStreamFactorySpec.php spec/UriFactory/SlimUriFactorySpec.php
composer remove --dev "slim/slim" --no-interaction --no-update
composer require "psr/http-message:^2.0" --no-interaction --no-update
composer update --prefer-dist --prefer-stable --no-interaction --no-progress
- name: Execute tests
run: composer test

lowest:
name: PHP ${{ matrix.php }} Lowest
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"guzzlehttp/psr7": "^1.0 || ^2.0",
"php-http/message-factory": "^1.0.2",
"phpspec/phpspec": "^5.1 || ^6.3 || ^7.1",
"slim/slim": "^3.0 || 4.x-dev as 4.0",
"slim/slim": "^3.0 || ^4.13",
"laminas/laminas-diactoros": "^2.0 || ^3.0"
},
"suggest": {
Expand Down

0 comments on commit 764a2c6

Please sign in to comment.