From 02a953316e75e21433743c9539c769779a8a42fa Mon Sep 17 00:00:00 2001 From: Sergey Danilchenko Date: Wed, 21 Feb 2024 16:05:14 +0200 Subject: [PATCH] Support Laravel 11 --- .github/workflows/tests.yml | 12 +++++++++++- composer.json | 6 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0a83851..44ea365 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,9 +11,18 @@ jobs: matrix: os: [ubuntu-22.04, windows-2019] php: [8.1, 8.2, 8.3] + laravel: [^10.18, ^11.0] stability: [prefer-lowest, prefer-stable] + include: + - laravel: ^10.18 + testbench: ^8.0 + - laravel: ^11.0 + testbench: ^9.0 + exclude: + - laravel: ^11.0 + php: ^8.1 - name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code @@ -28,6 +37,7 @@ jobs: - name: Install dependencies run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute lint tests with Laravel preset diff --git a/composer.json b/composer.json index 24ee124..c116da0 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ ], "require": { "php": "^8.1", - "laravel/framework": "^10.18" + "laravel/framework": "^10.18 || ^11.0" }, "require-dev": { "laravel/pint": "^1.0", - "orchestra/testbench": "^8.0", + "orchestra/testbench": "^8.0 || ^9.0", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^10.0 || ^11.0" }, "autoload": { "psr-4": {