From aae10b9e7ee3ae06b8e9634f520d6d94ca3e329d Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Tue, 12 Mar 2024 20:06:39 -0400 Subject: [PATCH] Laravel 11.x Compatibility (#106) * Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 14 +++++++++++--- composer.json | 6 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ed4898b..052e3ee 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,23 +2,31 @@ 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.2] - laravel: [10.*] + laravel: ['10.*', '11.*'] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* testbench: ^8.0 + - laravel: 11.* + testbench: ^9.0 + exclude: + - 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 0771ee5..95fb529 100644 --- a/composer.json +++ b/composer.json @@ -18,16 +18,16 @@ "require": { "php": "^8.1", "doctrine/dbal": "^3.5.1", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "filament/filament": "^3.0", "spatie/laravel-package-tools": "^1.9.2" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.8", - "nunomaduro/collision": "^7.0", + "nunomaduro/collision": "^7.0|^8.0", "nunomaduro/larastan": "^2.0.1", "orchestra/canvas": "^8.0", - "orchestra/testbench": "^8.0", + "orchestra/testbench": "^8.0|^9.0", "pestphp/pest": "^2.0", "pestphp/pest-plugin-laravel": "^2.0", "phpstan/extension-installer": "^1.1",