From 30a1bbac1f6f6e0a28571160996804ddc1c7d12a Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Tue, 18 Feb 2025 16:00:36 -0500 Subject: [PATCH] Laravel 12.x Compatibility (#14) * Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12 --- .github/workflows/run-tests.yml | 13 +++++++++---- composer.json | 6 +++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index eee6b64..31724df 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,14 +12,19 @@ jobs: fail-fast: true matrix: php: [8.4, 8.3, 8.2] - laravel: ["10.*", "11.*"] + laravel: ["10.*", "11.*", "12.*"] db: [mysql, postgres, sqlite] dependency-version: [prefer-lowest, prefer-stable] + exclude: + - laravel: 10.* + php: 8.4 include: - laravel: 10.* - testbench: 8.* + testbench: ^8.32 - laravel: 11.* - testbench: 9.* + testbench: ^9.10 + - laravel: 12.* + testbench: ^10.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - DB ${{ matrix.db }} - ${{ matrix.dependency-version }} @@ -50,7 +55,7 @@ jobs: uses: actions/checkout@v2 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.composer/cache/files key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} diff --git a/composer.json b/composer.json index 0da662b..4dc5502 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,12 @@ ], "require": { "php": "^8.2|^8.3|^8.4", - "illuminate/support": "^10.0|^11.0" + "illuminate/support": "^10.48.28|^11.43|^12.0" }, "require-dev": { "mockery/mockery": "^1.4.4", - "orchestra/testbench": "^8.0|^9.0", - "phpunit/phpunit": "^10.4" + "orchestra/testbench": "^8.32|^9.10|^10.0", + "phpunit/phpunit": "^10.4|^11.5.3" }, "autoload": { "psr-4": {