Skip to content

Commit

Permalink
fix: add laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip committed Mar 22, 2024
1 parent fd16463 commit d5172de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit d5172de

Please sign in to comment.