Skip to content

Commit 71291fa

Browse files
committed
[CI] Install dependencies only once
- Use ramsey/composer-install action with dependency matrix - Ensure composer validate runs before install in both jobs
1 parent 580ce38 commit 71291fa

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/pipeline.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ jobs:
2828
- name: Install Composer
2929
uses: "ramsey/composer-install@v3"
3030
with:
31+
composer-options: "--no-scripts"
3132
dependency-versions: "${{ matrix.dependencies }}"
3233

33-
- name: Install PHP Dependencies
34-
run: composer install --no-scripts
35-
3634
- name: Tests
3735
run: vendor/bin/phpunit --exclude-group inspector
3836

@@ -53,10 +51,8 @@ jobs:
5351

5452
- name: Install Composer
5553
uses: "ramsey/composer-install@v3"
56-
57-
- name: Install PHP Dependencies
58-
run: composer install --no-scripts
59-
54+
with:
55+
composer-options: "--no-scripts"
6056
- name: Code Style PHP
6157
run: vendor/bin/php-cs-fixer fix --dry-run
6258

0 commit comments

Comments
 (0)