Skip to content

Commit 6484d2b

Browse files
binotaliuaarondfrancis
authored andcommitted
add laravel 9 support
1 parent 64dd5a9 commit 6484d2b

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php: [ 7.3, 7.4, 8.0 ]
19-
laravel: [ 7.*, 8.* ]
19+
laravel: [ 7.*, 8.*, 9.* ]
2020
dependency-version: [ prefer-lowest, prefer-stable ]
2121
include:
2222
- laravel: 7.*
@@ -25,6 +25,16 @@ jobs:
2525
- laravel: 8.*
2626
testbench: 6.*
2727

28+
- laravel: 9.*
29+
testbench: 7.*
30+
31+
exclude:
32+
- laravel: 9.*
33+
php: 7.3
34+
35+
- laravel: 9.*
36+
php: 7.4
37+
2838
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2939

3040
steps:
@@ -54,15 +64,17 @@ jobs:
5464
run: vendor/bin/phpunit
5565

5666
- name: Install Livewire V1
67+
if: "! startsWith(matrix.laravel, '9.')"
5768
run: |
5869
composer require "livewire/livewire:^1" --no-interaction
5970
6071
- name: Execute tests
72+
if: "! startsWith(matrix.laravel, '9.')"
6173
run: vendor/bin/phpunit
6274

6375
- name: Install Livewire V2
6476
run: |
65-
composer require "livewire/livewire:^2" --no-interaction
77+
composer require "livewire/livewire:^2.3.10" -W --${{ matrix.dependency-version }} --no-interaction
6678
6779
- name: Execute tests
6880
run: vendor/bin/phpunit

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": "^7.26.0|^8.0",
21-
"illuminate/console": "^7.26.0|^8.0",
22-
"illuminate/http": "^7.26.0|^8.0",
23-
"illuminate/cache": "^7.26.0|^8.0",
24-
"illuminate/view": "^7.26.0|^8.0",
20+
"illuminate/support": "^7.26.0|^8.0|^9.0",
21+
"illuminate/console": "^7.26.0|^8.0|^9.0",
22+
"illuminate/http": "^7.26.0|^8.0|^9.0",
23+
"illuminate/cache": "^7.26.0|^8.0|^9.0",
24+
"illuminate/view": "^7.26.0|^8.0|^9.0",
2525
"guzzlehttp/guzzle": "^7.2",
2626
"ramsey/uuid": "^3.7|^4.0"
2727
},
2828
"require-dev": {
29-
"orchestra/testbench": "^5.0|^6.0",
29+
"orchestra/testbench": "^5.0|^6.0|^7.0",
3030
"mockery/mockery": "^1.3.3",
31-
"phpunit/phpunit": "^8.4"
31+
"phpunit/phpunit": "^8.4|^9.5"
3232
},
3333
"autoload": {
3434
"psr-4": {

0 commit comments

Comments
 (0)