@@ -65,25 +65,17 @@ jobs:
65
65
fail-fast : false
66
66
matrix :
67
67
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.*]
70
70
dbal : [3.*, 4.*]
71
71
exclude :
72
- - laravel : 9.*
73
- dbal : 4.*
74
72
- laravel : 10.*
75
73
dbal : 4.*
76
- - laravel : 10.*
77
- php : 8.0
78
- - laravel : 11.*
79
- php : 8.0
80
74
- laravel : 11.*
81
75
php : 8.1
82
76
- laravel : 11.*
83
77
dbal : 3.*
84
78
include :
85
- - laravel : 9.*
86
- testbench : 7.*
87
79
- laravel : 10.*
88
80
testbench : 8.*
89
81
- laravel : 11.*
@@ -128,15 +120,6 @@ jobs:
128
120
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "doctrine/dbal:${{ matrix.dbal }}" --no-interaction --no-update
129
121
composer install --prefer-dist --no-interaction --no-plugins
130
122
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
-
140
123
- name : Setup Node.js
141
124
uses : actions/setup-node@v1
142
125
with :
@@ -164,11 +147,6 @@ jobs:
164
147
- name : Prepare Testbench Dusk
165
148
run : ./vendor/bin/testbench-dusk package:discover
166
149
167
- - name : Set PHPUnit config for Laravel 9
168
- if : matrix.laravel == '9.*'
169
- run : |
170
- cp phpunit-legacy.xml phpunit.xml
171
-
172
150
- name : Execute all tests
173
151
run : vendor/bin/phpunit --stop-on-error
174
152
env :
@@ -178,10 +156,21 @@ jobs:
178
156
with :
179
157
files : .github/clover.xml
180
158
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
183
172
with :
184
- name : screenshots
173
+ name : screenshots-${{ matrix.os }}-${{ matrix.php }}-${{ env.REPLACED_LARAVEL }}-${{ env.REPLACED_DBAL }}
185
174
path : |
186
175
tests/Browser/screenshots/
187
176
tests/Browser/console/
0 commit comments