From 4c8ce8c32e1a7d149c2f89dedd00a31714965597 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 11 Jan 2022 13:56:09 +0100 Subject: [PATCH] Laravel 9 support --- .github/workflows/tests.yml | 18 ++++++++++++------ composer.json | 8 ++++---- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d68ae52..1f46c4b4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,15 +13,21 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4, 8.0, 8.1] - laravel: [^6.0, ^7.0, ^8.0] + php: [7.2, 7.3, 7.4, '8.0', 8.1] + laravel: [6, 7, 8, 9] exclude: - php: 7.2 - laravel: ^8.0 + laravel: 8 + - php: 7.2 + laravel: 9 + - php: 7.3 + laravel: 9 + - php: 7.4 + laravel: 9 - php: 8.1 - laravel: ^6.0 + laravel: 6 - php: 8.1 - laravel: ^7.0 + laravel: 7 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} @@ -39,7 +45,7 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update + composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update composer update --prefer-dist --no-interaction --no-progress - name: Execute tests diff --git a/composer.json b/composer.json index f175e328..23d8436f 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,13 @@ "require": { "php": "^7.2|^8.0", "ext-json": "*", - "illuminate/contracts": "^6.9|^7.0|^8.0", - "illuminate/database": "^6.9|^7.0|^8.0", - "illuminate/support": "^6.9|^7.0|^8.0" + "illuminate/contracts": "^6.9|^7.0|^8.0|^9.0", + "illuminate/database": "^6.9|^7.0|^8.0|^9.0", + "illuminate/support": "^6.9|^7.0|^8.0|^9.0" }, "require-dev": { "mockery/mockery": "^1.0", - "orchestra/testbench": "^4.0|^5.0|^6.0", + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0", "phpunit/phpunit": "^8.0|^9.3" }, "autoload": {