Skip to content

Commit 015dc80

Browse files
committed
fix(ci): install component dependencies using minimal-changes
1 parent 1a39532 commit 015dc80

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ jobs:
248248
continue-on-error: true
249249

250250
phpunit-components:
251-
name: PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.coverage && 'coverage' || '' }}${{ matrix.php.lowest && 'lowest' || '' }})
251+
name: PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.coverage && 'coverage' || '' }}${{ matrix.php.lowest && 'lowest' || '' }}${{ matrix.php.minimal-changes && 'minimal-changes' || '' }})
252252
runs-on: ubuntu-latest
253253
timeout-minutes: 20
254254
strategy:
@@ -260,6 +260,8 @@ jobs:
260260
coverage: true
261261
- version: '8.4'
262262
lowest: true
263+
- version: '8.4'
264+
minimal-changes: true
263265
component:
264266
- api-platform/doctrine-common
265267
- api-platform/doctrine-orm
@@ -293,15 +295,15 @@ jobs:
293295
composer global require soyuka/pmu
294296
composer global config allow-plugins.soyuka/pmu true --no-interaction
295297
- name: Linking
296-
if: ${{ !matrix.php.lowest }}
298+
if: ${{ !matrix.php.lowest && !matrix.php.minimal-changes }}
297299
run: |
298300
composer global link . --permanent
299301
composer ${{matrix.component}} update
300302
- name: Run ${{ matrix.component }} install
301-
if: ${{ matrix.php.lowest }}
303+
if: ${{ matrix.php.lowest || matrix.php.minimal-changes }}
302304
run: |
303305
cd $(composer ${{matrix.component}} --cwd)
304-
composer update${{ matrix.php.lowest && ' --prefer-lowest --prefer-source' || '' }}
306+
composer update${{ matrix.php.lowest && ' --prefer-lowest --prefer-source' || '' }}${{ matrix.php.minimal-changes && ' --minimal-changes' || '' }}
305307
- name: Run ${{ matrix.component }} tests
306308
run: |
307309
mkdir -p /tmp/build/logs/phpunit

0 commit comments

Comments
 (0)