diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa6e73c..6df6b08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,11 @@ name: test -on: [push] +on: + push: + pull_request: + types: + - opened + - synchronize jobs: build: @@ -11,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ 7.3, 7.4 ] + php: [ "7.3", "7.4", "8.0", "8.1" ] os: [ ubuntu-latest ] steps: @@ -23,6 +28,12 @@ jobs: with: php-version: ${{ matrix.php }} + - name: Cache Composer dependencies + uses: actions/cache@v2 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + - name: Install Dependencies uses: php-actions/composer@master with: diff --git a/composer.json b/composer.json index c8d021a..1a31471 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ }, "require": { "php": ">=7.2.5", - "guzzlehttp/guzzle": "^6.2|^7.0.1", + "guzzlehttp/guzzle": "^6.2|^7.0.1|^7.2", "aws/aws-sdk-php": "~3.0", "illuminate/contracts": "^6.0|^7.0|^8.0", "illuminate/database": "^6.0|^7.0|^8.0",