@@ -264,15 +264,19 @@ jobs:
264
264
continue-on-error : true
265
265
266
266
phpunit-components :
267
- name : PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php }})
267
+ name : PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.deprecations && 'no deprecations' || '' }})
268
268
runs-on : ubuntu-latest
269
269
timeout-minutes : 20
270
270
strategy :
271
271
matrix :
272
272
php :
273
- - ' 8.2'
274
- - ' 8.3'
275
- - ' 8.4'
273
+ - version : ' 8.2'
274
+ - version : ' 8.3'
275
+ - version : ' 8.4'
276
+ - version : ' 8.4'
277
+ coverage : true
278
+ - version : ' 8.4'
279
+ deprecations : true
276
280
component :
277
281
- api-platform/doctrine-common
278
282
- api-platform/doctrine-orm
@@ -290,22 +294,20 @@ jobs:
290
294
- api-platform/state
291
295
- api-platform/symfony
292
296
- api-platform/validator
293
- include :
294
- - php : ' 8.2'
295
- - php : ' 8.3'
296
- - php : ' 8.4'
297
- coverage : true
298
297
fail-fast : false
299
298
steps :
300
299
- name : Checkout
301
300
uses : actions/checkout@v4
302
301
- name : Setup PHP
303
302
uses : shivammathur/setup-php@v2
304
303
with :
305
- php-version : ${{ matrix.php }}
304
+ php-version : ${{ matrix.php.version }}
306
305
tools : pecl, composer
307
306
extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
308
307
ini-values : memory_limit=-1
308
+ - name : Allow unstable project dependencies
309
+ if : matrix.php.deprecations == true
310
+ run : composer config minimum-stability dev
309
311
- name : Run ${{ matrix.component }} install
310
312
run : |
311
313
composer global require soyuka/pmu
@@ -315,7 +317,7 @@ jobs:
315
317
- name : Run ${{ matrix.component }} tests
316
318
run : |
317
319
mkdir -p /tmp/build/logs/phpunit
318
- composer ${{matrix.component}} test --log-junit "/tmp/build/logs/phpunit/junit.xml" ${{ matrix.coverage && '--coverage-clover /tmp/build/logs/phpunit/clover.xml' || '' }}
320
+ composer ${{matrix.component}} test --log-junit "/tmp/build/logs/phpunit/junit.xml" ${{ matrix.php. coverage && '--coverage-clover /tmp/build/logs/phpunit/clover.xml' || '' }} ${{ matrix.php.deprecations && '--fail-on-deprecation --display-deprecations ' || '' }}
319
321
- name : Upload test artifacts
320
322
if : always()
321
323
uses : actions/upload-artifact@v4
0 commit comments