From 1bdc5fa66cc7d96e4e21ec487c40426004e64903 Mon Sep 17 00:00:00 2001 From: Joe FRANCOIS Date: Wed, 3 Apr 2024 18:42:31 +0200 Subject: [PATCH] feat: Adds support for Laravel 11 --- .github/workflows/tests.yml | 16 +++++++++++++--- composer.json | 10 +++++----- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5a00ee7..fd65a80 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,9 +11,19 @@ jobs: strategy: fail-fast: false matrix: - php: [ "8.1", "8.2" ] - laravel: [ "^9.0", "^10.0" ] + php: ["8.3", "8.2", "8.1"] + laravel: ["^11.0", "^10.0", "^9.0"] dependency-version: [ prefer-lowest, prefer-stable ] + exclude: + - laravel: "^11.0" + php: "8.1" + include: + - laravel: "^11.0" + testbench: 9.* + - laravel: "^10.0" + testbench: 8.* + - laravel: "^9.0" + testbench: 7.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -36,7 +46,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" --dev --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" --dev --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests diff --git a/composer.json b/composer.json index 35a30bc..d91df99 100644 --- a/composer.json +++ b/composer.json @@ -27,8 +27,8 @@ ], "require": { "php": "^8.1", - "illuminate/database": "^9|^10", - "illuminate/support": "^9|^10", + "illuminate/database": "^9.0|^10.0|^11.0", + "illuminate/support": "^9.0|^10.0|^11.0", "nesbot/carbon": ">=2.62.1" }, "require-dev": { @@ -36,9 +36,9 @@ "dg/bypass-finals": "^1.4", "guzzlehttp/guzzle": "^7.8", "laravel/pint": "^1.3", - "orchestra/testbench": "7.*|8.*", - "pestphp/pest": "^1.21", - "phpunit/phpunit": "^9.1" + "orchestra/testbench": "^7.0|^8.0|^9.0.2", + "pestphp/pest": "^1.21|^2.0", + "phpunit/phpunit": "^9.4 || ^10.5 || ^11.0" }, "autoload": { "psr-4": {