Skip to content

Commit 611b83c

Browse files
committed
minor #1174 [CI] Always build root packages for all PHPStan jobs (OskarStark)
This PR was merged into the main branch. Discussion ---------- [CI] Always build root packages for all PHPStan jobs | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 0051ec0 [CI] Always build root packages for all PHPStan jobs
2 parents 554258f + 0051ec0 commit 611b83c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/code-quality.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ jobs:
148148
php-version: ${{ env.PHP_VERSION }}
149149
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }}
150150

151+
- name: Install root dependencies
152+
uses: ramsey/composer-install@v3
153+
154+
- name: Build root packages
155+
run: php .github/build-packages.php
156+
151157
- name: Install dependencies
152158
uses: ramsey/composer-install@v3
153159
with:
@@ -174,18 +180,15 @@ jobs:
174180
php-version: ${{ env.PHP_VERSION }}
175181
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }}
176182

177-
- name: Install root dependencies (platform bridges only)
178-
if: matrix.bridge.component == 'platform'
183+
- name: Install root dependencies
179184
uses: ramsey/composer-install@v3
180185

181-
- name: Build root packages (platform bridges only)
182-
if: matrix.bridge.component == 'platform'
186+
- name: Build root packages
183187
run: php .github/build-packages.php
184188

185189
# Remove root vendor and bridge vendor to avoid circular symlinks when installing bridge dependencies
186-
- name: Clean vendor folders (platform bridges only)
187-
if: matrix.bridge.component == 'platform'
188-
run: rm -rf vendor src/platform/src/Bridge/${{ matrix.bridge.bridge }}/vendor
190+
- name: Clean vendor folders
191+
run: rm -rf vendor src/${{ matrix.bridge.component }}/src/Bridge/${{ matrix.bridge.bridge }}/vendor
189192

190193
- name: Install dependencies
191194
uses: ramsey/composer-install@v3

0 commit comments

Comments
 (0)