From 8eb674a32a6a7de43eec4243f09b0b563db92890 Mon Sep 17 00:00:00 2001 From: Bas van Dinther Date: Thu, 7 Mar 2024 11:38:15 +0100 Subject: [PATCH] Support Laravel 11 (#28) * Update packages and tests * wip * wip --- .github/workflows/run-tests.yml | 22 +++++++++++++--------- composer.json | 6 +++--- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4e06e6f..142ed2c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,12 +13,19 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1] - laravel: [9.*] + php: [8.1, 8.2] + laravel: [10.*, 11.*] stability: [prefer-lowest, prefer-stable] include: - - laravel: 9.* - testbench: 7.* + - laravel: 10.* + testbench: 8.* + carbon: ^2.63 + - laravel: 11.* + testbench: 9.* + carbon: ^2.72.2 + exclude: + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -40,11 +47,8 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --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 + run: vendor/bin/pest --ci \ No newline at end of file diff --git a/composer.json b/composer.json index 4ed4782..a37293d 100644 --- a/composer.json +++ b/composer.json @@ -23,16 +23,16 @@ }, "require-dev": { "laravel/pint": "^1.0", - "nunomaduro/collision": "^6.1", + "nunomaduro/collision": "^6.1|^7.0|^8.0", "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^7.0|^8.0|^9.0", + "orchestra/testbench": "^8.0|^9.0", "pestphp/pest": "^1.21|^2.34", "pestphp/pest-plugin-laravel": "^1.1|^2.3", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^9.6|^10.0", - "rector/rector": "^0.15.17" + "rector/rector": "^0.19.2|^1.0" }, "autoload": { "psr-4": {