From fab8cd6837cd8a8c3291ae08f9a62d44a99c13b1 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Wed, 15 Feb 2023 13:57:28 +0000 Subject: [PATCH] chore: add support for Laravel 10 (#150) --- .github/workflows/tests.yml | 11 ++++++++--- composer.json | 13 +++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20cb90a..1f13278 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,12 +9,17 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.0] - laravel: [9.*] + php: [8.0, 8.1, 8.2] + laravel: [9.*, 10.*] stability: [prefer-lowest, prefer-stable] include: - laravel: 9.* - testbench: 7.* + testbench: ^7.22 + - laravel: 10.* + testbench: 8.* + exclude: + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index 7e0aa83..db45aaa 100644 --- a/composer.json +++ b/composer.json @@ -13,17 +13,17 @@ "require": { "php": "^8.0", "ext-json": "*", - "illuminate/console": "^9.0", - "illuminate/database": "^9.0", - "illuminate/events": "^9.0", - "illuminate/support": "^9.0", + "illuminate/console": "^9.0 | ^10.0", + "illuminate/database": "^9.0 | ^10.0", + "illuminate/events": "^9.0 | ^10.0", + "illuminate/support": "^9.0 | ^10.0", "spatie/yaml-front-matter": "^2.0", "symfony/yaml": "^6.0" }, "require-dev": { "laravel/scout": "^9.4", "nunomaduro/larastan": "^2.0", - "orchestra/testbench": "^7.0", + "orchestra/testbench": "^7.0 | ^8.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", @@ -55,7 +55,8 @@ "config": { "sort-packages": true, "allow-plugins": { - "phpstan/extension-installer": true + "phpstan/extension-installer": true, + "pestphp/pest-plugin": true } } }