Skip to content

Commit 6924956

Browse files
committed
[CI] Replace composer update by ramsey/composer-install action
1 parent 82ffe2e commit 6924956

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/app-tests.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ jobs:
5353
- name: Build root packages
5454
run: php .github/build-packages.php
5555

56-
# We always install PHP deps because we of the UX Translator, which requires `var/translations` to exists
57-
- name: Install App dependenies
58-
run: composer update
59-
working-directory: test_apps/encore-app
56+
# We always install PHP deps because of the UX Translator, which requires `var/translations` to exists
57+
- name: Install App dependencies
58+
uses: ramsey/composer-install@v3
59+
with:
60+
working-directory: test_apps/encore-app
61+
dependency-versions: highest
6062

6163
- if: matrix.ux-packages-source == 'php-vendor'
6264
name: Refresh dependencies from vendor/

.github/workflows/functional-tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,15 @@ jobs:
6464
- name: Build root packages
6565
run: php .github/build-packages.php
6666

67-
- name: Install dependencies with composer
67+
- name: Configure composer dependencies stability
68+
run: composer config minimum-stability ${{ matrix.minimum-stability || 'stable' }}
6869
working-directory: src/Turbo
69-
run: |
70-
composer config minimum-stability ${{ matrix.minimum-stability || 'stable' }}
71-
composer update ${{ matrix.dependency-version == 'lowest' && '--prefer-lowest' || '' }} --no-progress --no-interaction
70+
71+
- name: Install dependencies with composer
72+
uses: ramsey/composer-install@v3
73+
with:
74+
working-directory: src/Turbo
75+
dependency-versions: ${{ matrix.dependency-version }}
7276

7377
- name: Install JavaScript dependencies
7478
working-directory: src/Turbo/tests/app

0 commit comments

Comments
 (0)