Skip to content

Commit 5670af3

Browse files
Merge pull request #60 from laravel-shift/l12-compatibility
Laravel 12.x Compatibility
2 parents ecdabd3 + 79296de commit 5670af3

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ on:
44
push:
55
branches:
66
- main
7-
87
pull_request:
9-
types: [ opened, synchronize, reopened ]
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
1012

1113
jobs:
1214
test:
1315
runs-on: ubuntu-latest
16+
1417
strategy:
1518
fail-fast: false
1619
matrix:
1720
php: ['8.0', '8.1', '8.2', '8.3']
18-
laravel: ['8.*', '9.*', '10.*', '11.*']
21+
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
1922
dependency-version: [prefer-lowest, prefer-stable]
2023
include:
2124
- laravel: 8.*
@@ -26,7 +29,8 @@ jobs:
2629
testbench: 8.*
2730
- laravel: 11.*
2831
testbench: 9.*
29-
32+
- laravel: 12.*
33+
testbench: 10.*
3034
exclude:
3135
- laravel: 8.*
3236
php: 8.1
@@ -37,21 +41,22 @@ jobs:
3741
- laravel: 8.*
3842
php: 8.3
3943
dependency-version: prefer-lowest
40-
4144
- laravel: 9.*
4245
php: 8.2
4346
dependency-version: prefer-lowest
4447
- laravel: 9.*
4548
php: 8.3
4649
dependency-version: prefer-lowest
47-
4850
- laravel: 10.*
4951
php: 8.0
50-
5152
- laravel: 11.*
5253
php: 8.0
5354
- laravel: 11.*
5455
php: 8.1
56+
- laravel: 12.*
57+
php: '8.0'
58+
- laravel: 12.*
59+
php: '8.1'
5560

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

@@ -83,12 +88,12 @@ jobs:
8388
run: vendor/bin/phpunit
8489

8590
- name: Install Livewire V2 (Below Laravel 11.0)
86-
if: "! startsWith(matrix.laravel, '11.')"
91+
if: "! startsWith(matrix.laravel, '11.') && ! startsWith(matrix.laravel, '12.')"
8792
run: |
8893
composer require "livewire/livewire:^2.3.10" -W --${{ matrix.dependency-version }} --no-interaction
8994
9095
- name: Test with Livewire V2
91-
if: "! startsWith(matrix.laravel, '11.')"
96+
if: "! startsWith(matrix.laravel, '11.') && ! startsWith(matrix.laravel, '12.')"
9297
run: vendor/bin/phpunit
9398

9499
- name: Install Livewire V3 (Above Laravel 9.0)

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
],
1818
"require": {
1919
"php": "^7.3|^8.0",
20-
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
21-
"illuminate/console": "^8.0|^9.0|^10.0|^11.0",
22-
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
23-
"illuminate/cache": "^8.0|^9.0|^10.0|^11.0",
24-
"illuminate/view": "^8.0|^9.0|^10.0|^11.0",
20+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
21+
"illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0",
22+
"illuminate/http": "^8.0|^9.0|^10.0|^11.0|^12.0",
23+
"illuminate/cache": "^8.0|^9.0|^10.0|^11.0|^12.0",
24+
"illuminate/view": "^8.0|^9.0|^10.0|^11.0|^12.0",
2525
"guzzlehttp/guzzle": "^7.2",
2626
"ramsey/uuid": "^3.7|^4.0"
2727
},
2828
"require-dev": {
29-
"orchestra/testbench": "^5.0|^6.0|^7.0|^9.0",
29+
"orchestra/testbench": "^5.0|^6.0|^7.0|^9.0|^10.0",
3030
"mockery/mockery": "^1.3.3",
31-
"phpunit/phpunit": "^8.5.23|^9.5|^10.5"
31+
"phpunit/phpunit": "^8.5.23|^9.5|^10.5|^11.5.3"
3232
},
3333
"autoload": {
3434
"psr-4": {

0 commit comments

Comments
 (0)