@@ -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 :
@@ -164,11 +147,6 @@ jobs:
164147 - name : Prepare Testbench Dusk
165148 run : ./vendor/bin/testbench-dusk package:discover
166149
167- - name : Set PHPUnit config for Laravel 9
168- if : matrix.laravel == '9.*'
169- run : |
170- cp phpunit-legacy.xml phpunit.xml
171-
172150 - name : Execute all tests
173151 run : vendor/bin/phpunit --stop-on-error
174152 env :
@@ -178,10 +156,21 @@ jobs:
178156 with :
179157 files : .github/clover.xml
180158
181- - uses : actions/upload-artifact@v2
182- if : always()
159+ - name : Replace asterisks in Laravel
160+ run : echo "REPLACED_LARAVEL=${MATRIX_LARAVEL//\*/_}" >> $GITHUB_ENV
161+ env :
162+ MATRIX_LARAVEL : ${{ matrix.laravel }}
163+
164+ - name : Replace asterisks in DBAL
165+ id : replace_dbal
166+ run : echo "REPLACED_DBAL=${MATRIX_DBAL//\*/_}" >> $GITHUB_ENV
167+ env :
168+ MATRIX_DBAL : ${{ matrix.dbal }}
169+
170+ - name : Upload artifact
171+ uses : actions/upload-artifact@v4
183172 with :
184- name : screenshots
173+ name : screenshots-${{ matrix.os }}-${{ matrix.php }}-${{ env.REPLACED_LARAVEL }}-${{ env.REPLACED_DBAL }}
185174 path : |
186175 tests/Browser/screenshots/
187176 tests/Browser/console/
0 commit comments