6
6
- main
7
7
8
8
pull_request :
9
- types : [opened, synchronize, reopened]
9
+ types : [ opened, synchronize, reopened ]
10
10
11
11
jobs :
12
12
test :
13
13
runs-on : ubuntu-latest
14
- if : " !contains(github.event.head_commit.message, 'ci skip')"
15
14
strategy :
16
15
fail-fast : false
17
16
matrix :
18
- php : [ 7.3, 7.4, 8.0, 8.1 ]
19
- laravel : [ 8.*, 9.* , 10.*]
20
- dependency-version : [ prefer-lowest, prefer-stable ]
17
+ php : ['8.0', '8.1', '8.2', '8.3' ]
18
+ laravel : [' 8.*', ' 9.*', ' 10.*', '11.*' ]
19
+ dependency-version : [prefer-lowest, prefer-stable]
21
20
include :
21
+ - laravel : 8.*
22
+ testbench : 6.*
23
+ - laravel : 9.*
24
+ testbench : 7.*
22
25
- laravel : 10.*
23
26
testbench : 8.*
27
+ - laravel : 11.*
28
+ testbench : 9.*
24
29
30
+ exclude :
25
31
- laravel : 8.*
26
- testbench : 6.*
32
+ php : 8.1
33
+ dependency-version : prefer-lowest
34
+ - laravel : 8.*
35
+ php : 8.2
36
+ dependency-version : prefer-lowest
37
+ - laravel : 8.*
38
+ php : 8.3
39
+ dependency-version : prefer-lowest
27
40
28
41
- laravel : 9.*
29
- testbench : 7.*
42
+ php : 8.2
43
+ dependency-version : prefer-lowest
44
+ - laravel : 9.*
45
+ php : 8.3
46
+ dependency-version : prefer-lowest
30
47
31
- exclude :
32
- - laravel : 10.*
33
- php : 7.3
34
- - laravel : 10.*
35
- php : 7.4
36
48
- laravel : 10.*
37
49
php : 8.0
38
- - laravel : 9.*
39
- php : 7.3
40
50
41
- - laravel : 9.*
42
- php : 7.4
43
-
44
- - laravel : 8.*
51
+ - laravel : 11.*
52
+ php : 8.0
53
+ - laravel : 11.*
45
54
php : 8.1
46
- dependency-version : prefer-lowest
47
55
48
56
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
49
57
50
58
steps :
51
59
- name : Checkout code
52
- uses : actions/checkout@v2
60
+ uses : actions/checkout@v4
53
61
54
62
- name : Cache dependencies
55
- uses : actions/cache@v2
63
+ uses : actions/cache@v4
56
64
with :
57
65
path : ~/.composer/cache/files
58
66
key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
@@ -74,13 +82,20 @@ jobs:
74
82
- name : Execute tests
75
83
run : vendor/bin/phpunit
76
84
77
- - name : Execute tests
78
- if : " ! startsWith(matrix.laravel, '9.')"
79
- run : vendor/bin/phpunit
80
-
81
- - name : Install Livewire V2
85
+ - name : Install Livewire V2 (Below Laravel 11.0)
86
+ if : " ! startsWith(matrix.laravel, '11.')"
82
87
run : |
83
88
composer require "livewire/livewire:^2.3.10" -W --${{ matrix.dependency-version }} --no-interaction
84
89
85
- - name : Execute tests
90
+ - name : Test with Livewire V2
91
+ if : " ! startsWith(matrix.laravel, '11.')"
86
92
run : vendor/bin/phpunit
93
+
94
+ - name : Install Livewire V3 (Above Laravel 9.0)
95
+ if : " ! startsWith(matrix.laravel, '8.') && ! startsWith(matrix.laravel, '9.')"
96
+ run : |
97
+ composer require "livewire/livewire:^3" -W --${{ matrix.dependency-version }} --no-interaction
98
+
99
+ - name : Test with Livewire V3
100
+ if : " ! startsWith(matrix.laravel, '8.') && ! startsWith(matrix.laravel, '9.')"
101
+ run : vendor/bin/phpunit
0 commit comments