From 680b6a75e4f2ed5aa11219dcf0573ac79f9a351a Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Thu, 14 Mar 2024 09:43:59 -0400 Subject: [PATCH] Laravel 11.x Compatibility (#53) * Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 18 ++++++++++++++---- composer.json | 10 +++++----- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1088d75..74f8fe6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,19 +2,22 @@ name: run-tests on: push: - branches: [main] + branches: + - main pull_request: - branches: [main] + branches: + - main jobs: test: runs-on: ${{ matrix.os }} + strategy: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1, 8.0] - laravel: [^8.71, 9.*, 10.*] + php: [8.0, 8.1, '8.2'] + laravel: ['9.*', '10.*', '11.0', ^8.71] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* @@ -23,6 +26,13 @@ jobs: testbench: 7.* - laravel: ^8.71 testbench: 6.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index 5dfc53d..065309f 100644 --- a/composer.json +++ b/composer.json @@ -18,13 +18,13 @@ "require": { "php": "^8.0", "spatie/laravel-package-tools": "^1.4.3", - "illuminate/contracts": "^8.37|^9|^10.0" + "illuminate/contracts": "^8.37|^9|^10.0|^11.0" }, "require-dev": { - "nunomaduro/collision": "^5.3|^6.1", - "orchestra/testbench": "^6.15|^7.0|^8.0", - "pestphp/pest": "^1.18", - "pestphp/pest-plugin-laravel": "^1.1", + "nunomaduro/collision": "^5.3|^6.1|^8.0", + "orchestra/testbench": "^6.15|^7.0|^8.0|^9.0", + "pestphp/pest": "^1.18|^2.34", + "pestphp/pest-plugin-laravel": "^1.1|^2.3", "spatie/laravel-ray": "^1.23", "vimeo/psalm": "^4.8|^5.6" },