Skip to content

Commit 82ffe2e

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

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.github/workflows/app-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646
- uses: shivammathur/setup-php@v2
4747

4848
- name: Install root dependencies
49-
run: composer install
49+
uses: ramsey/composer-install@v3
50+
with:
51+
working-directory: ${{ github.workspace }}
5052

5153
- name: Build root packages
5254
run: php .github/build-packages.php

.github/workflows/code-quality.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v4
37+
3738
- uses: shivammathur/setup-php@v2
3839
with:
3940
php-version: '8.1'
40-
- run: composer install
41+
42+
- name: Install root dependencies
43+
uses: ramsey/composer-install@v3
44+
with:
45+
working-directory: ${{ github.workspace }}
46+
4147
- name: php-cs-fixer
4248
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff
4349

@@ -84,7 +90,9 @@ jobs:
8490
tools: flex
8591

8692
- name: Install root dependencies
87-
run: composer install
93+
uses: ramsey/composer-install@v3
94+
with:
95+
working-directory: ${{ github.workspace }}
8896

8997
- name: Build root packages
9098
run: php .github/build-packages.php

.github/workflows/functional-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ jobs:
5757
tools: flex
5858

5959
- name: Install root dependencies
60-
run: composer install
60+
uses: ramsey/composer-install@v3
61+
with:
62+
working-directory: ${{ github.workspace }}
6163

6264
- name: Build root packages
6365
run: php .github/build-packages.php

.github/workflows/unit-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ jobs:
6969
tools: flex
7070

7171
- name: Install root dependencies
72-
run: composer install
72+
uses: ramsey/composer-install@v3
73+
with:
74+
working-directory: ${{ github.workspace }}
7375

7476
- name: Build root packages
7577
run: php .github/build-packages.php

0 commit comments

Comments
 (0)