diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04aff26..fa55200 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,16 +13,17 @@ jobs: tests: runs-on: ubuntu-latest - name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}" + name: "PHP ${{ matrix.php }} - Guzzle ${{ matrix.guzzle }}" strategy: fail-fast: false matrix: - php: ["8.0", "8.1", "8.2"] + php: ["8.0", "8.1", "8.2", "8.3"] + guzzle: ["6.5.8", "7.8.1"] steps: - - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP @@ -31,6 +32,11 @@ jobs: php-version: "${{ matrix.php }}" coverage: none + - + name: Restrict Guzzle version + if: matrix.guzzle != '' + run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle }}" --no-update --no-scripts --no-interaction + - name: Run Composer install run: composer install -n diff --git a/composer.json b/composer.json index c0b35bc..a586c30 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "ext-ctype": "*", "ext-json": "*", "psr/log": "^2.0", - "guzzlehttp/guzzle": "^6.2", + "guzzlehttp/guzzle": "^6.2 || ^7.0", "respect/validation": "^1.1", "php": "^8.0" },