@@ -11,6 +11,7 @@ name: CI
1111env :
1212 COMPOSER_ROOT_VERSION : " 8.5.x-dev"
1313 PHP_VERSION : 8.4
14+ UNSTABLE_PHP_VERSION : 8.5
1415
1516permissions :
1617 contents : read
@@ -141,7 +142,13 @@ jobs:
141142 - name : Install dependencies with Composer
142143 run : php ./tools/composer install --no-ansi --no-interaction --no-progress
143144
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
145152 run : php ./phpunit --testsuite unit
146153
147154 end-to-end-tests :
@@ -193,7 +200,13 @@ jobs:
193200 - name : Install dependencies with Composer
194201 run : php ./tools/composer install --no-ansi --no-interaction --no-progress
195202
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
197210 run : php ./phpunit --testsuite end-to-end
198211
199212 code-coverage :
0 commit comments