Skip to content

Commit

Permalink
Add Support for Laravel 12 (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel authored Feb 14, 2025
1 parent d69b75f commit 269ad9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@ jobs:
fail-fast: false
matrix:
php: [8.2, 8.3, 8.4]
laravel: [11.*]
phpunit: [10.*]
laravel: [11.*, 12.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
exclude:
- php: 8.2
phpunit: 11.*
- laravel: 12.*
testbench: 10.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} PU${{ matrix.phpunit }} - ${{ matrix.stability }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}

steps:
- name: Checkout code
Expand All @@ -36,7 +34,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --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 --no-suggest
- name: Execute tests
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@
"require": {
"php": "^8.2",
"ext-json": "*",
"illuminate/console": "^11.0",
"illuminate/support": "^11.0",
"illuminate/console": "^11.0 | ^12.0",
"illuminate/support": "^11.0 | ^12.0",
"stefanzweifel/laravel-stats-phploc": "^7.0 | ^8.0",
"symfony/finder": "^7.0",
"symfony/process": " ^7.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"larastan/larastan": "^2.0",
"laravel/browser-kit-testing": "^7.1 | ^8.0",
"laravel/dusk": "^8.0",
"livewire/livewire": "^3.0",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2",
"orchestra/testbench": "^9.0 | ^10",
"pestphp/pest": "^2 | ^3",
"phpunit/phpunit": "^10.0 | ^11.0",
"rector/rector": "^1.0"
},
Expand Down

0 comments on commit 269ad9f

Please sign in to comment.