@@ -264,7 +264,7 @@ jobs:
264264 continue-on-error : true
265265
266266 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' || '' }}
268268 runs-on : ubuntu-latest
269269 timeout-minutes : 20
270270 strategy :
@@ -274,8 +274,6 @@ jobs:
274274 - version : ' 8.3'
275275 - version : ' 8.4'
276276 coverage : true
277- - version : ' 8.4'
278- deprecations : true
279277 component :
280278 - api-platform/doctrine-common
281279 - api-platform/doctrine-orm
@@ -309,18 +307,13 @@ jobs:
309307 composer global require soyuka/pmu
310308 composer global config allow-plugins.soyuka/pmu true --no-interaction
311309 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
317310 - name : Run ${{ matrix.component }} install
318311 run : |
319312 composer ${{matrix.component}} update
320313 - name : Run ${{ matrix.component }} tests
321314 run : |
322315 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' || '' }}
324317 - name : Upload test artifacts
325318 if : always()
326319 uses : actions/upload-artifact@v4
@@ -347,6 +340,56 @@ jobs:
347340 php-coveralls --coverage_clover=/tmp/build/logs/phpunit/clover.xml
348341 continue-on-error : true
349342
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+
350393 behat :
351394 name : Behat (PHP ${{ matrix.php }})
352395 runs-on : ubuntu-latest
0 commit comments