Skip to content

Commit 45066b3

Browse files
Laravel 12.x Compatibility (#25)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12
1 parent 5adbe5d commit 45066b3

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.github/workflows/tests.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ on:
44
push:
55
pull_request:
66
schedule:
7-
- cron: "0 0 * * *"
7+
- cron: '0 0 * * *'
88

99
jobs:
1010
tests:
1111
runs-on: ${{ matrix.os }}
12+
1213
strategy:
1314
fail-fast: true
1415
matrix:
1516
os: [ubuntu-latest]
1617
php: [8.3, 8.2, 8.1, 8.0]
17-
laravel: [11.*, 10.*, 9.*]
18+
laravel: ['9.*', '10.*', '11.*', '12.*']
1819
dependency-version: [prefer-lowest, prefer-stable]
1920
exclude:
2021
- laravel: 11.*
@@ -27,6 +28,10 @@ jobs:
2728
php: 8.3
2829
- laravel: 9.*
2930
php: 8.2
31+
- laravel: 12.*
32+
php: 8.1
33+
- laravel: 12.*
34+
php: 8.0
3035

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

@@ -46,5 +51,6 @@ jobs:
4651
run: |
4752
composer require "illuminate/bus:${{ matrix.laravel }}" "illuminate/contracts:${{ matrix.laravel }}" "illuminate/database:${{ matrix.laravel }}" "illuminate/http:${{ matrix.laravel }}" "illuminate/pagination:${{ matrix.laravel }}" "illuminate/queue:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update
4853
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress
54+
4955
- name: Execute tests
5056
run: vendor/bin/phpunit

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
],
1818
"require": {
1919
"php": "^8.0 || ^8.1 || ^8.2",
20-
"illuminate/bus": "^9.0 || ^10.0 || ^11.0",
21-
"illuminate/contracts": "^9.0 || ^10.0 || ^11.0",
22-
"illuminate/database": "^9.0 || ^10.0 || ^11.0",
23-
"illuminate/http": "^9.0 || ^10.0 || ^11.0",
24-
"illuminate/pagination": "^9.0 || ^10.0 || ^11.0",
25-
"illuminate/queue": "^9.0 || ^10.0 || ^11.0",
26-
"illuminate/support": "^9.0 || ^10.0 || ^11.0",
20+
"illuminate/bus": "^9.0 || ^10.0 || ^11.0 || ^12.0",
21+
"illuminate/contracts": "^9.0 || ^10.0 || ^11.0 || ^12.0",
22+
"illuminate/database": "^9.0 || ^10.0 || ^11.0 || ^12.0",
23+
"illuminate/http": "^9.0 || ^10.0 || ^11.0 || ^12.0",
24+
"illuminate/pagination": "^9.0 || ^10.0 || ^11.0 || ^12.0",
25+
"illuminate/queue": "^9.0 || ^10.0 || ^11.0 || ^12.0",
26+
"illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0",
2727
"laravel/scout": "^10.0"
2828
},
2929
"require-dev": {
3030
"laravel/pint": "^1.0",
3131
"mockery/mockery": "^1.5.1",
32-
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0",
33-
"phpunit/phpunit": "^9.0 || ^10.5"
32+
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0 || ^10.0",
33+
"phpunit/phpunit": "^9.0 || ^10.5 || ^11.5.3"
3434
},
3535
"minimum-stability": "dev",
3636
"prefer-stable": true,

0 commit comments

Comments
 (0)