@@ -65,25 +65,17 @@ jobs:
6565 fail-fast : false
6666 matrix :
6767 os : [ubuntu-latest]
68- php : [8.3, 8.2, 8.1, 8.0 ]
69- laravel : [9.*, 10.*, 11.*]
68+ php : [8.3, 8.2, 8.1]
69+ laravel : [10.*, 11.*]
7070 dbal : [3.*, 4.*]
7171 exclude :
72- - laravel : 9.*
73- dbal : 4.*
7472 - laravel : 10.*
7573 dbal : 4.*
76- - laravel : 10.*
77- php : 8.0
78- - laravel : 11.*
79- php : 8.0
8074 - laravel : 11.*
8175 php : 8.1
8276 - laravel : 11.*
8377 dbal : 3.*
8478 include :
85- - laravel : 9.*
86- testbench : 7.*
8779 - laravel : 10.*
8880 testbench : 8.*
8981 - laravel : 11.*
@@ -128,15 +120,6 @@ jobs:
128120 composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "doctrine/dbal:${{ matrix.dbal }}" --no-interaction --no-update
129121 composer install --prefer-dist --no-interaction --no-plugins
130122
131- - name : Patch TestCase files for PHP < 8.1
132- run : |
133- if php -r 'exit(version_compare(PHP_VERSION, "8.1.0", "<") ? 0 : 1);'; then
134- for file in tests/integration/TestCase.php tests/Browser/BrowserTestCase.php; do
135- sed -i 's/protected function onNotSuccessfulTest(Throwable \$t): never/protected function onNotSuccessfulTest(Throwable \$t): void/' "$file";
136- echo "Patched $file for PHP < 8.1";
137- done
138- fi
139-
140123 - name : Setup Node.js
141124 uses : actions/setup-node@v1
142125 with :
@@ -155,32 +138,15 @@ jobs:
155138 env :
156139 CACHE_STORE : array
157140
158- - name : Upgrade Chrome (Laravel 9)
159- if : matrix.laravel == '9.*'
160- uses : browser-actions/setup-chrome@latest
161- with :
162- chrome-version : 126
163-
164141 - name : Upgrade Chrome
165- if : matrix.laravel != '9.*'
166142 uses : browser-actions/setup-chrome@latest
167143
168- - name : Upgrade Chrome Driver (Laravel 9)
169- if : matrix.laravel == '9.*'
170- run : ./vendor/bin/testbench dusk:chrome-driver 126
171-
172144 - name : Upgrade Chrome Driver
173- if : matrix.laravel != '9.*'
174145 run : ./vendor/bin/testbench dusk:chrome-driver --detect
175146
176147 - name : Prepare Testbench Dusk
177148 run : ./vendor/bin/testbench-dusk package:discover
178149
179- - name : Set PHPUnit config for Laravel 9
180- if : matrix.laravel == '9.*'
181- run : |
182- cp phpunit-legacy.xml phpunit.xml
183-
184150 - name : Execute all tests
185151 run : vendor/bin/phpunit --stop-on-error
186152 env :
0 commit comments