Skip to content

Commit

Permalink
PHP 7.1 requires older Guzzle so install that for dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Nov 9, 2021
1 parent 3971880 commit c073c9c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ jobs:
run: "composer remove --dev symfony/* laravel/* --no-update --no-interaction"
- name: "Require framework ${{ matrix.laravel-version}}"
run: "composer require laravel/framework:${{ matrix.laravel-version}} --no-update --no-interaction --prefer-dist --prefer-stable"
- name: "Require Guzzle 6 ${{ matrix.lumen-version}}"
- name: "Replace guzzlehttp/guzzle with php-http/guzzle6-adapter for PHP 7.1"
if: ${{ matrix.php-version == '7.1' }}
run: "composer require --dev php-http/guzzle6-adapter --no-update --no-interaction --prefer-dist --prefer-stable"
run: |
composer remove --dev guzzlehttp/guzzle --no-update --no-interaction
composer require --dev php-http/guzzle6-adapter --no-update --no-interaction
- name: "Composer update with new requirements"
run: "composer update --no-interaction --prefer-dist --prefer-stable"
- name: "Run PHPUnit (Laravel) test suite"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/lumen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ jobs:
run: "composer remove --dev symfony/* laravel/* --no-update --no-interaction"
- name: "Require framework ${{ matrix.lumen-version}}"
run: "composer require laravel/lumen:${{ matrix.lumen-version}} --no-update --no-interaction --prefer-dist --prefer-stable"
- name: "Require Guzzle 6 ${{ matrix.lumen-version}}"
- name: "Replace guzzlehttp/guzzle with php-http/guzzle6-adapter for PHP 7.1"
if: ${{ matrix.php-version == '7.1' }}
run: "composer require --dev php-http/guzzle6-adapter --no-update --no-interaction --prefer-dist --prefer-stable"
run: |
composer remove --dev guzzlehttp/guzzle --no-update --no-interaction
composer require --dev php-http/guzzle6-adapter --no-update --no-interaction
- name: "Composer update with new requirements"
run: "composer update --no-interaction --prefer-dist --prefer-stable"
- name: "Run PHPUnit (Lumen) test suite"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/symfony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
# See: https://github.com/composer/composer/issues/9561
- name: "Remove existing requirements components (avoid conflicts)"
run: "composer remove --dev symfony/* laravel/* --no-update --no-interaction"
- name: "Replace guzzlehttp/guzzle with php-http/guzzle6-adapter for PHP 7.1"
if: ${{ matrix.php-version == '7.1' }}
run: |
composer remove --dev guzzlehttp/guzzle --no-update --no-interaction
composer require --dev php-http/guzzle6-adapter --no-update --no-interaction
- name: "Require Symfony ${{ matrix.symfony-version }}, Twig ${{ matrix.twig-version }}"
run: "composer require symfony/symfony:${{ matrix.symfony-version }} twig/twig:${{ matrix.twig-version }} symfony/orm-pack:^2.0 symfony/twig-pack:^1.0 --no-update --no-interaction --prefer-dist --prefer-stable"
- name: "Composer update with new requirements"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
php-version: "${{ matrix.php-version }}"
tools: pecl
extensions: ${{ matrix.extensions }}
- name: "Replace guzzlehttp/guzzle with php-http/guzzle6-adapter for PHP 7.1"
if: ${{ matrix.php-version == '7.1' }}
run: |
composer remove --dev guzzlehttp/guzzle --no-update --no-interaction
composer require --dev php-http/guzzle6-adapter --no-update --no-interaction
- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --prefer-dist --no-interaction --no-progress"
Expand Down

0 comments on commit c073c9c

Please sign in to comment.