Skip to content

Commit c4c6da3

Browse files
committed
[CI] Install dependencies only once
1 parent 580ce38 commit c4c6da3

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/pipeline.yml

Lines changed: 5 additions & 9 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

@@ -48,15 +46,13 @@ jobs:
4846
php-version: '8.1'
4947
coverage: "none"
5048

51-
- name: Composer Validation
52-
run: composer validate --strict
53-
5449
- name: Install Composer
5550
uses: "ramsey/composer-install@v3"
51+
with:
52+
composer-options: "--no-scripts"
5653

57-
- name: Install PHP Dependencies
58-
run: composer install --no-scripts
59-
54+
- name: Composer Validation
55+
run: composer validate --strict
6056
- name: Code Style PHP
6157
run: vendor/bin/php-cs-fixer fix --dry-run
6258

0 commit comments

Comments
 (0)