@@ -264,15 +264,14 @@ jobs:
264
264
continue-on-error : true
265
265
266
266
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' || '' }})
268
268
runs-on : ubuntu-latest
269
269
timeout-minutes : 20
270
270
strategy :
271
271
matrix :
272
272
php :
273
273
- version : ' 8.2'
274
274
- version : ' 8.3'
275
- - version : ' 8.4'
276
275
- version : ' 8.4'
277
276
coverage : true
278
277
- version : ' 8.4'
@@ -305,18 +304,19 @@ jobs:
305
304
tools : pecl, composer
306
305
extensions : intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
307
306
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
312
308
run : |
313
309
composer global require soyuka/pmu
314
310
composer global config allow-plugins.soyuka/pmu true --no-interaction
315
311
composer global link . --permanent
316
- composer ${{matrix.component}} update
317
- - name : Patch phpunit
312
+ - name : Allow unstable project dependencies
318
313
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
320
320
- name : Run ${{ matrix.component }} tests
321
321
run : |
322
322
mkdir -p /tmp/build/logs/phpunit
@@ -867,8 +867,6 @@ jobs:
867
867
composer global link .
868
868
- name : Clear test app cache
869
869
run : tests/Fixtures/app/console cache:clear --ansi
870
- - name : Patch phpunit
871
- run : git apply --directory vendor/phpunit/phpunit .github/patches/phpunit.patch
872
870
- name : Run PHPUnit tests
873
871
run : vendor/bin/phpunit --fail-on-deprecation --display-deprecations
874
872
0 commit comments