66 - main
77
88 pull_request :
9- types : [opened, synchronize, reopened]
9+ types : [ opened, synchronize, reopened ]
1010
1111jobs :
1212 test :
1313 runs-on : ubuntu-latest
14- if : " !contains(github.event.head_commit.message, 'ci skip')"
1514 strategy :
1615 fail-fast : false
1716 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]
2120 include :
21+ - laravel : 8.*
22+ testbench : 6.*
23+ - laravel : 9.*
24+ testbench : 7.*
2225 - laravel : 10.*
2326 testbench : 8.*
27+ - laravel : 11.*
28+ testbench : 9.*
2429
30+ exclude :
2531 - 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
2740
2841 - 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
3047
31- exclude :
32- - laravel : 10.*
33- php : 7.3
34- - laravel : 10.*
35- php : 7.4
3648 - laravel : 10.*
3749 php : 8.0
38- - laravel : 9.*
39- php : 7.3
4050
41- - laravel : 9.*
42- php : 7.4
43-
44- - laravel : 8.*
51+ - laravel : 11.*
52+ php : 8.0
53+ - laravel : 11.*
4554 php : 8.1
46- dependency-version : prefer-lowest
4755
4856 name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
4957
5058 steps :
5159 - name : Checkout code
52- uses : actions/checkout@v2
60+ uses : actions/checkout@v4
5361
5462 - name : Cache dependencies
55- uses : actions/cache@v2
63+ uses : actions/cache@v4
5664 with :
5765 path : ~/.composer/cache/files
5866 key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
@@ -74,13 +82,20 @@ jobs:
7482 - name : Execute tests
7583 run : vendor/bin/phpunit
7684
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.')"
8287 run : |
8388 composer require "livewire/livewire:^2.3.10" -W --${{ matrix.dependency-version }} --no-interaction
8489
85- - name : Execute tests
90+ - name : Test with Livewire V2
91+ if : " ! startsWith(matrix.laravel, '11.')"
8692 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