@@ -264,7 +264,7 @@ jobs:
264
264
continue-on-error : true
265
265
266
266
phpunit-components :
267
- name : PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.coverage && 'coverage' || '' }}${{ matrix.php.deprecations && 'no deprecations' || '' }})
267
+ name : PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.coverage && 'coverage' || '' }}
268
268
runs-on : ubuntu-latest
269
269
timeout-minutes : 20
270
270
strategy :
@@ -274,8 +274,6 @@ jobs:
274
274
- version : ' 8.3'
275
275
- version : ' 8.4'
276
276
coverage : true
277
- - version : ' 8.4'
278
- deprecations : true
279
277
component :
280
278
- api-platform/doctrine-common
281
279
- api-platform/doctrine-orm
@@ -309,18 +307,13 @@ jobs:
309
307
composer global require soyuka/pmu
310
308
composer global config allow-plugins.soyuka/pmu true --no-interaction
311
309
composer global link . --permanent
312
- - name : Allow unstable project dependencies
313
- if : matrix.php.deprecations == true
314
- run : |
315
- cd $(composer ${{matrix.component}} --cwd)
316
- composer config minimum-stability dev
317
310
- name : Run ${{ matrix.component }} install
318
311
run : |
319
312
composer ${{matrix.component}} update
320
313
- name : Run ${{ matrix.component }} tests
321
314
run : |
322
315
mkdir -p /tmp/build/logs/phpunit
323
- 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' || '' }}
316
+ composer ${{matrix.component}} test --log-junit "/tmp/build/logs/phpunit/junit.xml" ${{ matrix.php.coverage && '--coverage-clover /tmp/build/logs/phpunit/clover.xml' || '' }}
324
317
- name : Upload test artifacts
325
318
if : always()
326
319
uses : actions/upload-artifact@v4
@@ -347,6 +340,56 @@ jobs:
347
340
php-coveralls --coverage_clover=/tmp/build/logs/phpunit/clover.xml
348
341
continue-on-error : true
349
342
343
+ phpunit-components-fail-deprecation :
344
+ name : PHPUnit no deprecations ${{ matrix.component }} (PHP ${{ matrix.php.version }}
345
+ runs-on : ubuntu-latest
346
+ timeout-minutes : 20
347
+ strategy :
348
+ matrix :
349
+ php :
350
+ - version : ' 8.4'
351
+ component :
352
+ - api-platform/doctrine-common
353
+ - api-platform/doctrine-orm
354
+ - api-platform/doctrine-odm
355
+ - api-platform/metadata
356
+ - api-platform/hydra
357
+ - api-platform/json-api
358
+ - api-platform/json-schema
359
+ - api-platform/elasticsearch
360
+ - api-platform/openapi
361
+ - api-platform/graphql
362
+ - api-platform/http-cache
363
+ - api-platform/ramsey-uuid
364
+ - api-platform/serializer
365
+ - api-platform/state
366
+ - api-platform/symfony
367
+ - api-platform/validator
368
+ fail-fast : false
369
+ steps :
370
+ - name : Checkout
371
+ uses : actions/checkout@v4
372
+ - name : Setup PHP
373
+ uses : shivammathur/setup-php@v2
374
+ with :
375
+ php-version : ${{ matrix.php.version }}
376
+ tools : pecl, composer
377
+ extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
378
+ ini-values : memory_limit=-1
379
+ - name : Linking
380
+ run : |
381
+ composer global require soyuka/pmu
382
+ composer global config allow-plugins.soyuka/pmu true --no-interaction
383
+ composer global link . --permanent
384
+ - name : Run ${{ matrix.component }} install
385
+ run : |
386
+ composer ${{matrix.component}} update
387
+ - name : Run ${{ matrix.component }} tests
388
+ run : |
389
+ mkdir -p /tmp/build/logs/phpunit
390
+ cd $(composer ${{matrix.component}} --cwd)
391
+ ./vendor/bin/phpunit --fail-on-deprecation --display-deprecations --log-junit "/tmp/build/logs/phpunit/junit.xml"
392
+
350
393
behat :
351
394
name : Behat (PHP ${{ matrix.php }})
352
395
runs-on : ubuntu-latest
0 commit comments