From d5172de9f706474a476ad39debe136a0ae42b1e7 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 23 Mar 2024 00:08:09 +0800 Subject: [PATCH] fix: add laravel 11 --- .github/workflows/build.yml | 14 +++++++++++++- composer.json | 10 +++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e3359d..c033f42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,7 +105,14 @@ jobs: - php: 8.1 laravel: 10.* phpunit: ~9.0 - + # Laravel 11.x + - php: 8.2 + laravel: 11.* + phpunit: ~10.5 + - php: 8.3 + laravel: 11.* + phpunit: ~10.5 + name: Laravel${{ matrix.laravel }}-PHP${{ matrix.php }} steps: @@ -130,8 +137,13 @@ jobs: composer install --prefer-dist --no-progress --no-suggest - name: Run test suite + if: steps.composer-cache.outputs.cache-hit != 'true' run: ./vendor/bin/phpunit -v + - name: Run test suite laravel 11 + if: ${{ matrix.laravel }} != '11.*' + run: ./vendor/bin/phpunit --display-notices + - name: Run Coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/composer.json b/composer.json index b008c26..76b38ed 100755 --- a/composer.json +++ b/composer.json @@ -21,17 +21,17 @@ "license": "Apache-2.0", "require": { "php": ">=7.1.0", - "illuminate/support": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0", - "illuminate/database": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0", - "illuminate/console": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0", + "illuminate/support": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0", + "illuminate/database": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0", + "illuminate/console": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0", "casbin/casbin": "~3.1", "casbin/psr3-bridge": "^1.1" }, "require-dev": { - "phpunit/phpunit": "~7.0|~8.0|~9.0", + "phpunit/phpunit": "~7.0|~8.0|~9.0|~10.5", "php-coveralls/php-coveralls": "^2.4", "mockery/mockery": "^1.0", - "laravel/laravel": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0" + "laravel/laravel": "~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0" }, "autoload": { "psr-4": {