Skip to content

Commit 5475953

Browse files
committed
[CI] Install dependencies only once
1 parent 4fef07d commit 5475953

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/pipeline.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ jobs:
2525
- name: Install Composer
2626
uses: "ramsey/composer-install@v3"
2727
with:
28+
composer-options: "--no-scripts"
2829
dependency-versions: "${{ matrix.dependencies }}"
2930

3031
- name: Composer Validation
3132
run: composer validate --strict
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

@@ -50,13 +48,12 @@ jobs:
5048

5149
- name: Install Composer
5250
uses: "ramsey/composer-install@v3"
51+
with:
52+
composer-options: "--no-scripts"
5353

5454
- name: Composer Validation
5555
run: composer validate --strict
5656

57-
- name: Install PHP Dependencies
58-
run: composer install --no-scripts
59-
6057
- name: Code Style PHP
6158
run: vendor/bin/php-cs-fixer fix --dry-run
6259

0 commit comments

Comments
 (0)