From 5d407dc3627a782c3119760387c31993b2837dbb Mon Sep 17 00:00:00 2001 From: mohamedsabil83 Date: Tue, 12 Mar 2024 23:51:40 +0300 Subject: [PATCH] Support Laravel 11.x --- .github/workflows/run-tests.yml | 15 ++++++++------- composer.json | 14 +++++++------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 2ab64ea..2743162 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,14 +13,18 @@ jobs: strategy: fail-fast: true matrix: - os: [ ubuntu-latest, windows-latest ] + os: [ ubuntu-latest ] php: [ 8.3, 8.2, 8.1 ] - laravel: [ 10.* ] + laravel: [ 11.*, 10.* ] stability: [ prefer-lowest, prefer-stable ] include: + - laravel: 11.* + testbench: 9.* - laravel: 10.* testbench: 8.* - carbon: ^2.63 + exclude: + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -42,11 +46,8 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - - name: List Installed Dependencies - run: composer show -D - - name: Execute tests run: vendor/bin/pest --ci diff --git a/composer.json b/composer.json index 7d04645..eb7fa25 100644 --- a/composer.json +++ b/composer.json @@ -21,20 +21,20 @@ ], "require": { "php": "^8.1", - "spatie/laravel-package-tools": "^1.14.0", - "illuminate/contracts": "^10.0" + "illuminate/contracts": "^10.0|^11.0", + "spatie/laravel-package-tools": "^1.14.0" }, "require-dev": { + "larastan/larastan": "^2.2", "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.8", - "larastan/larastan": "^2.0.1", - "orchestra/testbench": "^8.8", - "pestphp/pest": "^2.20", - "pestphp/pest-plugin-arch": "^2.5", + "nunomaduro/collision": "^7.0|^8.0", + "orchestra/testbench": "8.0|^9.0", + "pestphp/pest": "^2.0", "pestphp/pest-plugin-laravel": "^2.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^10.0|^11.0", "spatie/laravel-ray": "^1.26" }, "autoload": {