@@ -11,6 +11,7 @@ name: CI
11
11
env :
12
12
COMPOSER_ROOT_VERSION : " 8.5.x-dev"
13
13
PHP_VERSION : 8.4
14
+ UNSTABLE_PHP_VERSION : 8.5
14
15
15
16
permissions :
16
17
contents : read
@@ -141,7 +142,13 @@ jobs:
141
142
- name : Install dependencies with Composer
142
143
run : php ./tools/composer install --no-ansi --no-interaction --no-progress
143
144
144
- - name : Run tests with PHPUnit
145
+ - name : Run tests with PHPUnit using stable PHP version
146
+ if : matrix.php-version != ${{ env.UNSTABLE_PHP_VERSION }}
147
+ run : php ./phpunit --testsuite unit
148
+
149
+ - name : Run tests with PHPUnit using unstable PHP version
150
+ if : matrix.php-version == ${{ env.UNSTABLE_PHP_VERSION }}
151
+ continue-on-error : true
145
152
run : php ./phpunit --testsuite unit
146
153
147
154
end-to-end-tests :
@@ -193,7 +200,13 @@ jobs:
193
200
- name : Install dependencies with Composer
194
201
run : php ./tools/composer install --no-ansi --no-interaction --no-progress
195
202
196
- - name : Run tests with PHPUnit
203
+ - name : Run tests with PHPUnit using stable PHP version
204
+ if : matrix.php-version != ${{ env.UNSTABLE_PHP_VERSION }}
205
+ run : php ./phpunit --testsuite end-to-end
206
+
207
+ - name : Run tests with PHPUnit using unstable PHP version
208
+ if : matrix.php-version == ${{ env.UNSTABLE_PHP_VERSION }}
209
+ continue-on-error : true
197
210
run : php ./phpunit --testsuite end-to-end
198
211
199
212
code-coverage :
0 commit comments