From 80d51a9e01f94219e7139b38457fa25d24eb82cc Mon Sep 17 00:00:00 2001 From: jordyvanderhaegen Date: Fri, 21 Feb 2025 22:23:01 +0100 Subject: [PATCH] chore: support laravel 12 --- .github/workflows/main.yml | 13 ++++++++++--- composer.json | 12 ++++++------ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0a3cd8b..da52ef8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,14 +13,21 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.4, 8.3, 8.2] - laravel: [11.*, 10.*] + php: [8.4, 8.3, 8.2, 8.1] + laravel: [12.*, 11.*, 10.*] stability: [prefer-lowest, prefer-stable] include: + - laravel: 12.* + testbench: 10.* - laravel: 11.* testbench: 9.* - laravel: 10.* testbench: 8.* + exclude: + - laravel: 12.* + php: 8.1 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -41,7 +48,7 @@ jobs: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64" "orchestra/testbench:${{ matrix.testbench }}" --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: Execute tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index afe7811..7045a23 100644 --- a/composer.json +++ b/composer.json @@ -16,15 +16,15 @@ } ], "require": { - "php": "^8.0", - "illuminate/console": "^10.0|^11.0", - "illuminate/mail": "^10.0|^11.0", - "illuminate/support": "^10.0|^11.0" + "php": "^8.1", + "illuminate/console": "^10.0|^11.0|^12.0", + "illuminate/mail": "^10.0|^11.0|^12.0", + "illuminate/support": "^10.0|^11.0|^12.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.5", - "orchestra/testbench": "^8.0|^9.0", - "phpunit/phpunit": "^10.1" + "orchestra/testbench": "^8.0|^9.0|^10.0", + "phpunit/phpunit": "^10.1|^11.0" }, "autoload": { "psr-4": {