@@ -313,7 +313,14 @@ jobs:
313313 timeout-minutes : 20
314314 strategy :
315315 matrix :
316- php : ${{ fromJSON(github.event_name == 'pull_request' && '[{"version":"8.2"},{"version":"8.5","coverage":true},{"version":"8.5","lowest":true},{"version":"8.5","minimal-changes":true}]' || '[{"version":"8.2"},{"version":"8.3"},{"version":"8.4"},{"version":"8.5","coverage":true},{"version":"8.5","lowest":true},{"version":"8.5","minimal-changes":true}]') }}
316+ php :
317+ - version : ' 8.2'
318+ - version : ' 8.5'
319+ coverage : true
320+ - version : ' 8.5'
321+ lowest : true
322+ - version : ' 8.5'
323+ minimal-changes : true
317324 component :
318325 - api-platform/doctrine-common
319326 - api-platform/doctrine-orm
@@ -370,6 +377,11 @@ jobs:
370377 run : |
371378 mkdir -p /tmp/build/logs/phpunit
372379 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.lowest && ' --ignore-baseline' || '' }}
380+ - name : Run ${{ matrix.component }} tests (no deprecations)
381+ if : ${{ matrix.php.version == '8.5' && !matrix.php.lowest && !matrix.php.minimal-changes }}
382+ run : |
383+ cd $(composer ${{matrix.component}} --cwd)
384+ ./vendor/bin/phpunit --fail-on-deprecation --display-deprecations
373385 - name : Upload test artifacts
374386 if : always()
375387 uses : actions/upload-artifact@v6
@@ -397,56 +409,6 @@ jobs:
397409 php-coveralls --coverage_clover=/tmp/build/logs/phpunit/clover.xml
398410 continue-on-error : true
399411
400- phpunit-components-fail-deprecation :
401- name : PHPUnit no deprecations ${{ matrix.component }} (PHP ${{ matrix.php.version }}
402- runs-on : ubuntu-latest
403- timeout-minutes : 20
404- strategy :
405- matrix :
406- php :
407- - version : ' 8.5'
408- component :
409- - api-platform/doctrine-common
410- - api-platform/doctrine-orm
411- - api-platform/doctrine-odm
412- - api-platform/metadata
413- - api-platform/hydra
414- - api-platform/json-api
415- - api-platform/json-schema
416- - api-platform/elasticsearch
417- - api-platform/openapi
418- - api-platform/graphql
419- - api-platform/http-cache
420- - api-platform/ramsey-uuid
421- - api-platform/serializer
422- - api-platform/state
423- - api-platform/symfony
424- - api-platform/validator
425- fail-fast : false
426- steps :
427- - name : Checkout
428- uses : actions/checkout@v6
429- - name : Setup PHP
430- uses : shivammathur/setup-php@v2
431- with :
432- php-version : ${{ matrix.php.version }}
433- tools : pecl, composer:2.9.8
434- extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite
435- ini-values : memory_limit=-1
436- - name : Linking
437- run : |
438- composer global require soyuka/pmu
439- composer global config allow-plugins.soyuka/pmu true --no-interaction
440- composer global link . --permanent
441- - name : Run ${{ matrix.component }} install
442- run : |
443- composer ${{matrix.component}} update
444- - name : Run ${{ matrix.component }} tests
445- run : |
446- mkdir -p /tmp/build/logs/phpunit
447- cd $(composer ${{matrix.component}} --cwd)
448- ./vendor/bin/phpunit --fail-on-deprecation --display-deprecations --log-junit "/tmp/build/logs/phpunit/junit.xml"
449-
450412 postgresql :
451413 name : PHPUnit (PHP ${{ matrix.php }}) (PostgreSQL)
452414 runs-on : ubuntu-latest
0 commit comments