Skip to content

Commit

Permalink
Add support for Guzzle v6 (#58)
Browse files Browse the repository at this point in the history
* Add support for Guzzle ^6.3
* Add Guzzle versions to test matrix
* Update test title names
  • Loading branch information
wilsenhc authored Mar 31, 2022
1 parent 49570ca commit 4268aec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Tests

on: [ push, pull_request ]
on:
push:
branches:
- main

pull_request:
types: [ opened, synchronize, reopened ]

jobs:
test:
Expand All @@ -11,6 +17,7 @@ jobs:
matrix:
php: [ 7.2, 7.3, 7.4, 8.0 ]
laravel: [ 7.*, 8.*, 9.* ]
guzzle: [ 6.*, 7.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
include:
- laravel: 7.*
Expand Down Expand Up @@ -39,7 +46,11 @@ jobs:
- laravel: 9.*
php: 7.4

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
# Laravel 9 requires Guzzle ^7.2
- laravel: 9.*
guzzle: 6.*

name: P${{ matrix.php }} / L${{ matrix.laravel }} / G${{ matrix.guzzle }} / ${{ matrix.dependency-version }}

steps:
- name: Checkout code
Expand All @@ -61,7 +72,7 @@ jobs:
- name: Install dependencies
run: |
composer self-update ${{ matrix.composer-version }}
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "guzzlehttp/guzzle:${{ matrix.guzzle }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"illuminate/filesystem": "^7.0|^8.0|^9.0",
"illuminate/console": "^7.0|^8.0|^9.0",
"maennchen/zipstream-php": "^2.1",
"guzzlehttp/guzzle": "^7.2",
"guzzlehttp/guzzle": "^6.3|^7.2",
"aws/aws-sdk-php": "^3.20.0"
},
"require-dev": {
Expand Down

0 comments on commit 4268aec

Please sign in to comment.