From 1ddf85686780e770605034b06a9ff629cdf52b5f Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Thu, 5 Dec 2024 11:22:47 +0100 Subject: [PATCH] Add support for spatie/browsershot v5 (#137) --- .github/workflows/run-tests.yml | 3 ++- composer.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b68dea1..27941c2 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -16,6 +16,7 @@ jobs: os: [ubuntu-latest] php: [8.2, 8.3, 8.4] laravel: [10.*, 11.*] + browsershot: [4.*, 5.*] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* @@ -43,7 +44,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "spatie/browsershot:${{ matrix.browsershot }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction npm ci diff --git a/composer.json b/composer.json index cadeb1a..96b6981 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "php": "^8.2", "hammerstone/sidecar": "^0.4 || ^0.5 || ^0.6", "illuminate/contracts": "^10.0 || ^11.0", - "spatie/browsershot": "^4.0", + "spatie/browsershot": "^4.0 || ^5.0", "spatie/laravel-package-tools": "^1.9.2" }, "require-dev": {