From 845cb26094233ea87425d93294fb626c10c7e166 Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Sat, 2 Mar 2024 05:02:35 -0500 Subject: [PATCH] Laravel 11.x Compatibility (#528) * Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 10 ++++++++-- composer.json | 15 +++++++++++---- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 84536c1..cde6816 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -6,25 +6,31 @@ on: - master pull_request: branches: - - "*" + - * schedule: - cron: '0 0 * * *' jobs: php-tests: runs-on: ubuntu-20.04 + timeout-minutes: 15 + env: COMPOSER_NO_INTERACTION: 1 strategy: matrix: php: [8.2, 8.1, 8.0] - laravel: [10.*, 9.*] + laravel: ['9.*', '10.*', '11.*'] dependency-version: [prefer-lowest, prefer-stable] exclude: - laravel: 10.* php: 8.0 + - laravel: 11.* + php: 8.1 + - laravel: 11.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/composer.json b/composer.json index f6517be..bdac7f0 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,14 @@ { "name": "barryvdh/laravel-snappy", "description": "Snappy PDF/Image for Laravel", - "keywords": ["laravel","snappy", "pdf", "image", "wkhtmltopdf", "wkhtmltoimage"], + "keywords": [ + "laravel", + "snappy", + "pdf", + "image", + "wkhtmltopdf", + "wkhtmltoimage" + ], "license": "MIT", "authors": [ { @@ -11,12 +18,12 @@ ], "require": { "php": ">=7.2", - "illuminate/support": "^9|^10", - "illuminate/filesystem": "^9|^10", + "illuminate/support": "^9|^10|^11.0", + "illuminate/filesystem": "^9|^10|^11.0", "knplabs/knp-snappy": "^1.4.4" }, "require-dev": { - "orchestra/testbench": "^7|^8" + "orchestra/testbench": "^7|^8|^9.0" }, "autoload": { "psr-4": {