Skip to content

Commit fd6972d

Browse files
authored
ci: install component dependecies using minimal-changes (#7505)
1 parent da2324e commit fd6972d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010

1111
env:
1212
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13-
COMPOSER_ROOT_VERSION: "4.1.x-dev"
13+
COMPOSER_ROOT_VERSION: "4.2.x-dev"
1414

1515
jobs:
1616
architecture:
@@ -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)