Skip to content

Commit

Permalink
Laravel 12.x Compatibility (#115)
Browse files Browse the repository at this point in the history
* Bump dependencies for Laravel 12

* Update GitHub Actions for Laravel 12

* Update run-tests.yml

---------

Co-authored-by: Freek Van der Herten <[email protected]>
  • Loading branch information
laravel-shift and freekmurze authored Feb 21, 2025
1 parent 826f793 commit 4f638ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1, 8.0]
laravel: ['9.*', '10.*', '11.*']
php: [8.4, 8.3, 8.2, 8.1, 8.0]
laravel: ['9.*', '10.*', '11.*', '12.*']
dependency-version: [prefer-stable]
include:
- laravel: 10.*
Expand All @@ -22,13 +22,19 @@ jobs:
testbench: 7.*
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.1
- laravel: 11.*
php: 8.0
- laravel: 12.*
php: 8.1
- laravel: 12.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

Expand All @@ -51,7 +57,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "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.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
],
"require": {
"php": "^7.2|^8.0",
"illuminate/support": "^6.0|^7.0|^8.67|^9.0|^10.0|^11.0",
"illuminate/support": "^6.0|^7.0|^8.67|^9.0|^10.0|^11.0|^12.0",
"guzzlehttp/guzzle": "^6.5|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5.21|^9.0|^9.4.4|^10.5",
"orchestra/testbench": "^4.0|^5.0|^6.0|^8.0|^9.0"
"phpunit/phpunit": "^8.5.21|^9.0|^9.4.4|^10.5|^11.5.3",
"orchestra/testbench": "^4.0|^5.0|^6.0|^8.0|^9.0|^10.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 4f638ef

Please sign in to comment.