Skip to content

Commit 8956bd2

Browse files
committed
Exclude Bridge packages from separate PHPStan runs in CI
Bridge packages are analyzed as part of their parent component's PHPStan run (e.g., Brave bridge is checked with agent package), so they don't need to be analyzed separately.
1 parent 232bd68 commit 8956bd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/code-quality.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo COMPOSER_UP='composer update --no-progress --no-interaction --no-scripts --ansi --ignore-platform-req=ext-mongodb' >> $GITHUB_ENV
3333
echo PHPSTAN='vendor/bin/phpstan' >> $GITHUB_ENV
3434
35-
PACKAGES=$(find src/ -mindepth 2 -type f -name composer.json -not -path "*/vendor/*" -printf '%h\n' | sed 's/^src\///' | grep -Ev "examples" | sort | tr '\n' ' ')
35+
PACKAGES=$(find src/ -mindepth 2 -type f -name composer.json -not -path "*/vendor/*" -not -path "*/Bridge/*" -printf '%h\n' | sed 's/^src\///' | grep -Ev "examples" | sort | tr '\n' ' ')
3636
echo "Packages: $PACKAGES"
3737
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
3838
@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
cd demo/ && $COMPOSER_UP && ../link && $PHPSTAN
7070
71-
- name: Run PHPStan on packages
71+
- name: Run PHPStan on components and bundles
7272
run: |
7373
source .github/workflows/.utils.sh
7474

0 commit comments

Comments
 (0)