From eeb90928fb8d3cd4d9493b90d77729406c2d3b67 Mon Sep 17 00:00:00 2001 From: William Hall Date: Thu, 20 Jul 2023 14:52:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20support=20all=20the=20laravels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/php.yml | 12 ++++++------ composer.json | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 2164d40..2b53828 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -11,12 +11,12 @@ jobs: strategy: fail-fast: true matrix: - php: [8.0] - laravel: [^8.43] + php: ["8.0",8.1,8.2] + laravel: [^8.43,^9,^10] dependency-version: [prefer-lowest, prefer-stable] - include: - - laravel: ^8.43 - testbench: ^6.19 + exclude: + - php: "8.0" + laravel: 10 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -40,7 +40,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-progress --no-update + composer require "laravel/framework:${{ matrix.laravel }}" --no-progress --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --no-suggest - name: Run Tests diff --git a/composer.json b/composer.json index 01ce544..59e102e 100644 --- a/composer.json +++ b/composer.json @@ -11,17 +11,17 @@ } ], "require": { - "php": ">=8.0", - "illuminate/database": "^8.43", - "illuminate/support": "^8.43", - "illuminate/collections": "^8.43", - "illuminate/config": "^8.43", - "illuminate/cache": "^8.43", + "php": "^8.0", + "illuminate/database": "^8.43|^9.0|^10.0", + "illuminate/support": "^8.43|^9.0|^10.0", + "illuminate/collections": "^8.43|^9.0|^10.0", + "illuminate/config": "^8.43|^9.0|^10.0", + "illuminate/cache": "^8.43|^9.0|^10.0", "symfony/console": "^5.3" }, "require-dev": { "mockery/mockery": "^1.4.3", - "orchestra/testbench": "^6.19", + "orchestra/testbench": "^6.0|^7.0|^8.0", "phpunit/phpunit": "^9.5.4" }, "autoload-dev": {