Skip to content

Commit bf9d323

Browse files
committed
Switch to ramsey/composer-install action
1 parent f12542a commit bf9d323

12 files changed

+63
-77
lines changed

.github/workflows/apiref.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
coverage: "none"
3838
php-version: "8.2"
3939

40-
- name: "Install dependencies"
41-
run: "composer install --no-interaction --no-progress"
40+
- uses: "ramsey/composer-install@v3"
4241

4342
- name: "Install ApiGen dependencies"
44-
working-directory: "apigen"
45-
run: "composer install --no-interaction --no-progress"
43+
uses: "ramsey/composer-install@v3"
44+
with:
45+
working-directory: "apigen"
4646

4747
- name: "Run ApiGen"
4848
run: "apigen/vendor/bin/apigen -c apigen/apigen.neon --output docs -- src vendor/nikic/php-parser vendor/ondrejmirtes/better-reflection vendor/phpstan/phpdoc-parser"

.github/workflows/backward-compatibility.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ jobs:
3434
coverage: "none"
3535
php-version: "8.2"
3636

37-
- name: "Install dependencies"
38-
run: "composer install --no-dev --no-interaction --no-progress"
37+
- uses: "ramsey/composer-install@v3"
3938

4039
- name: "Install BackwardCompatibilityCheck"
4140
run: |

.github/workflows/build-issue-bot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
coverage: "none"
4343
php-version: "8.3"
4444

45-
- name: "Install dependencies"
46-
run: "composer install --no-interaction --no-progress"
45+
- uses: "ramsey/composer-install@v3"
4746

48-
- name: "Install Issue Bot dependencies"
49-
working-directory: "issue-bot"
50-
run: "composer install --no-interaction --no-progress"
47+
- name: "Install issue-bot dependencies"
48+
uses: "ramsey/composer-install@v3"
49+
with:
50+
working-directory: "issue-bot"
5151

5252
- name: "Tests"
5353
working-directory: "issue-bot"

.github/workflows/changelog-generator.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
coverage: "none"
3636
php-version: "8.2"
3737

38-
- name: "Install dependencies"
39-
run: "composer install --no-interaction --no-progress"
38+
- uses: "ramsey/composer-install@v3"
4039

4140
- name: "Install Changelog Generator dependencies"
42-
working-directory: "changelog-generator"
43-
run: "composer install --no-interaction --no-progress"
41+
uses: "ramsey/composer-install@v3"
42+
with:
43+
working-directory: "changelog-generator"
4444

4545
- name: "PHPStan"
4646
working-directory: "changelog-generator"

.github/workflows/e2e-tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ jobs:
298298
extensions: mbstring
299299
ini-values: memory_limit=256M
300300

301-
- name: "Install dependencies"
302-
run: "composer install --no-interaction --no-progress"
301+
- uses: "ramsey/composer-install@v3"
303302

304303
- name: "Patch PHPStan"
305304
run: "patch src/Analyser/Error.php < e2e/PHPStanErrorPatch.patch"
@@ -411,8 +410,7 @@ jobs:
411410
tools: ${{ matrix.tools }}
412411
extensions: ${{ matrix.extensions }}
413412

414-
- name: "Install dependencies"
415-
run: "composer install --no-interaction --no-progress"
413+
- uses: "ramsey/composer-install@v3"
416414

417415
- name: "Install bashunit"
418416
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.22.0"

.github/workflows/issue-bot.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ jobs:
4040
coverage: "none"
4141
php-version: "8.3"
4242

43-
- name: "Install Issue Bot dependencies"
44-
working-directory: "issue-bot"
45-
run: "composer install --no-interaction --no-progress"
43+
- name: "Install issue-bot dependencies"
44+
uses: "ramsey/composer-install@v3"
45+
with:
46+
working-directory: "issue-bot"
4647

4748
- name: "Cache downloads"
4849
uses: actions/cache@v4
@@ -90,12 +91,14 @@ jobs:
9091
coverage: "none"
9192
php-version: "8.3"
9293

93-
- name: "Install dependencies"
94-
run: "composer install --no-interaction --no-progress --no-dev"
94+
- uses: "ramsey/composer-install@v3"
95+
with:
96+
composer-options: "--no-dev"
9597

96-
- name: "Install Issue Bot dependencies"
97-
working-directory: "issue-bot"
98-
run: "composer install --no-interaction --no-progress"
98+
- name: "Install issue-bot dependencies"
99+
uses: "ramsey/composer-install@v3"
100+
with:
101+
working-directory: "issue-bot"
99102

100103
- uses: Wandalen/[email protected]
101104
with:
@@ -132,9 +135,10 @@ jobs:
132135
coverage: "none"
133136
php-version: "8.3"
134137

135-
- name: "Install Issue Bot dependencies"
136-
working-directory: "issue-bot"
137-
run: "composer install --no-interaction --no-progress"
138+
- name: "Install issue-bot dependencies"
139+
uses: "ramsey/composer-install@v3"
140+
with:
141+
working-directory: "issue-bot"
138142

139143
- uses: actions/download-artifact@v4
140144
with:

.github/workflows/lint.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
if: matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1'
4545
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs"
4646

47-
- name: "Install dependencies"
48-
run: "composer install --no-interaction --no-progress"
47+
- uses: "ramsey/composer-install@v3"
4948

5049
- name: "Change to simple-downgrade PHP version"
5150
if: matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1'
@@ -100,12 +99,12 @@ jobs:
10099
- name: "Validate Composer"
101100
run: "composer validate"
102101

103-
- name: "Install dependencies"
104-
run: "composer install --no-interaction --no-progress"
102+
- uses: "ramsey/composer-install@v3"
105103

106104
- name: "Install build-cs dependencies"
107-
working-directory: "build-cs"
108-
run: "composer install --no-interaction --no-progress"
105+
uses: "ramsey/composer-install@v3"
106+
with:
107+
working-directory: "build-cs"
109108

110109
- name: "Lint"
111110
run: "make lint"
@@ -129,8 +128,7 @@ jobs:
129128
coverage: "none"
130129
php-version: "8.3"
131130

132-
- name: "Install dependencies"
133-
run: "composer install --no-interaction --no-progress"
131+
- uses: "ramsey/composer-install@v3"
134132

135133
- name: "Composer Dependency Analyser"
136134
run: "make composer-dependency-analyser"
@@ -151,8 +149,7 @@ jobs:
151149
coverage: "none"
152150
php-version: "8.5"
153151

154-
- name: "Install dependencies"
155-
run: "composer install --no-interaction --no-progress"
152+
- uses: "ramsey/composer-install@v3"
156153

157154
- name: "Name Collision Detector"
158155
run: "make name-collision"

.github/workflows/phar.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,16 @@ jobs:
3838
php-version: "8.2"
3939
extensions: mbstring, intl
4040

41-
- name: "Install dependencies"
42-
run: "composer install --no-interaction --no-progress"
41+
- uses: "ramsey/composer-install@v3"
4342

4443
# only sebastian/diff ^4 supports PHP 7.4 so we need that in the PHAR
4544
- name: "Downgrade PHPUnit"
4645
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs"
4746

4847
- name: "Install compiler dependencies"
49-
run: "composer install --no-interaction --no-progress --working-dir=compiler"
48+
uses: "ramsey/composer-install@v3"
49+
with:
50+
working-directory: "compiler"
5051

5152
- name: "Compiler tests"
5253
working-directory: "compiler"
@@ -64,8 +65,9 @@ jobs:
6465
run: "composer dump"
6566

6667
- name: "Install Box dependencies"
67-
working-directory: "compiler/box"
68-
run: "composer install"
68+
uses: "ramsey/composer-install@v3"
69+
with:
70+
working-directory: "compiler/box"
6971

7072
- name: "Compile PHAR"
7173
working-directory: "compiler/build"
@@ -86,8 +88,7 @@ jobs:
8688
- name: "Set autoloader suffix"
8789
run: "composer config autoloader-suffix PHPStanChecksum"
8890

89-
- name: "Composer dump"
90-
run: "composer install --no-interaction --no-progress"
91+
- uses: "ramsey/composer-install@v3"
9192
env:
9293
COMPOSER_ROOT_VERSION: "2.1.x-dev"
9394

@@ -250,12 +251,12 @@ jobs:
250251
coverage: "none"
251252
php-version: "8.2"
252253

253-
- name: "Install dependencies"
254-
run: "composer install --no-interaction --no-progress"
254+
- uses: "ramsey/composer-install@v3"
255255

256256
- name: "Install Box dependencies"
257-
working-directory: "compiler/box"
258-
run: "composer install"
257+
uses: "ramsey/composer-install@v3"
258+
with:
259+
working-directory: "compiler/box"
259260

260261
- name: "Extract old phpstan.phar"
261262
run: "php compiler/box/vendor/bin/box extract phar-file-checksum-base/phpstan.phar phar-old"

.github/workflows/reflection-golden-test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ jobs:
4343
# Include exotic extensions to discover more symbols
4444
extensions: ds,mbstring,runkit7,scoutapm,seaslog,simdjson,var_representation,yac
4545

46-
- name: "Install dependencies"
47-
run: "composer install --no-interaction --no-progress"
46+
- uses: "ramsey/composer-install@v3"
4847

4948
- name: "Dump phpSymbols.txt"
5049
run: "php tests/dump-reflection-test-symbols.php"
@@ -94,8 +93,7 @@ jobs:
9493
ini-file: development
9594
ini-values: memory_limit=2G
9695

97-
- name: "Install dependencies"
98-
run: "composer install --no-interaction --no-progress"
96+
- uses: "ramsey/composer-install@v3"
9997

10098
- name: "Dump previous reflection data"
10199
run: "php tests/generate-reflection-test.php"
@@ -108,8 +106,7 @@ jobs:
108106
- name: "Checkout"
109107
uses: actions/checkout@v4
110108

111-
- name: "Install dependencies"
112-
run: "composer install --no-interaction --no-progress"
109+
- uses: "ramsey/composer-install@v3"
113110

114111
- name: "Reflection golden test"
115112
run: "make tests-golden-reflection || true"

.github/workflows/static-analysis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ jobs:
5454
shell: bash
5555
run: "composer require --dev phpunit/phpunit:^9.6 sebastian/diff:^4.0 --update-with-dependencies --ignore-platform-reqs"
5656

57-
- name: "Install dependencies"
58-
run: "composer install --no-interaction --no-progress"
57+
- uses: "ramsey/composer-install@v3"
5958

6059
- name: "Change to simple-downgrade PHP version"
6160
if: matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1'
@@ -113,8 +112,7 @@ jobs:
113112
ini-file: development
114113
extensions: mbstring
115114

116-
- name: "Install dependencies"
117-
run: "composer install --no-interaction --no-progress"
115+
- uses: "ramsey/composer-install@v3"
118116

119117
- name: "Cache Result cache"
120118
uses: actions/cache@v4
@@ -150,8 +148,7 @@ jobs:
150148
php-version: "8.2"
151149
ini-file: development
152150

153-
- name: "Install dependencies"
154-
run: "composer install --no-interaction --no-progress"
151+
- uses: "ramsey/composer-install@v3"
155152

156153
- name: "Generate baseline"
157154
run: |
@@ -176,8 +173,7 @@ jobs:
176173
php-version: "8.2"
177174
ini-file: development
178175

179-
- name: "Install dependencies"
180-
run: "composer install --no-interaction --no-progress"
176+
- uses: "ramsey/composer-install@v3"
181177

182178
- name: "Generate baseline"
183179
run: |

0 commit comments

Comments
 (0)