@@ -264,15 +264,14 @@ jobs:
264264 continue-on-error : true
265265
266266 phpunit-components :
267- name : PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.deprecations && 'no deprecations' || '' }})
267+ name : PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.coverage && 'coverage' || '' }}${{ matrix.php. deprecations && 'no deprecations' || '' }})
268268 runs-on : ubuntu-latest
269269 timeout-minutes : 20
270270 strategy :
271271 matrix :
272272 php :
273273 - version : ' 8.2'
274274 - version : ' 8.3'
275- - version : ' 8.4'
276275 - version : ' 8.4'
277276 coverage : true
278277 - version : ' 8.4'
@@ -305,18 +304,19 @@ jobs:
305304 tools : pecl, composer
306305 extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
307306 ini-values : memory_limit=-1
308- - name : Allow unstable project dependencies
309- if : matrix.php.deprecations == true
310- run : composer config minimum-stability dev
311- - name : Run ${{ matrix.component }} install
307+ - name : Linking
312308 run : |
313309 composer global require soyuka/pmu
314310 composer global config allow-plugins.soyuka/pmu true --no-interaction
315311 composer global link . --permanent
316- composer ${{matrix.component}} update
317- - name : Patch phpunit
312+ - name : Allow unstable project dependencies
318313 if : matrix.php.deprecations == true
319- run : git apply --directory vendor/phpunit/phpunit .github/patches/phpunit.patch
314+ run : |
315+ cd $(composer ${{matrix.component}} --cwd)
316+ composer config minimum-stability dev
317+ - name : Run ${{ matrix.component }} install
318+ run : |
319+ composer ${{matrix.component}} update
320320 - name : Run ${{ matrix.component }} tests
321321 run : |
322322 mkdir -p /tmp/build/logs/phpunit
@@ -867,8 +867,6 @@ jobs:
867867 composer global link .
868868 - name : Clear test app cache
869869 run : tests/Fixtures/app/console cache:clear --ansi
870- - name : Patch phpunit
871- run : git apply --directory vendor/phpunit/phpunit .github/patches/phpunit.patch
872870 - name : Run PHPUnit tests
873871 run : vendor/bin/phpunit --fail-on-deprecation --display-deprecations
874872
0 commit comments