Skip to content

Commit 96b7f92

Browse files
committed
Fix PHPStan on bridges workflow step
- Simplify find pattern to use src/*/src/Bridge/* - Run link script once from root instead of from each bridge directory - Remove problematic ../../../link call from bridge execution
1 parent 1578bf6 commit 96b7f92

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/code-quality.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,16 @@ jobs:
6969
source .github/workflows/.utils.sh
7070
7171
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_UP && $PHPSTAN)'"
72+
73+
- name: Run PHPStan on bridges
74+
run: |
75+
source .github/workflows/.utils.sh
76+
77+
BRIDGES=$(find src/*/src/Bridge/* -name composer.json -not -path "*/vendor/*" 2>/dev/null | sed 's|/composer.json||' | sed 's|^src/||' | sort | tr '\n' ' ')
78+
if [ -n "$BRIDGES" ]; then
79+
echo "Bridges: $BRIDGES"
80+
./link
81+
echo "$BRIDGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_UP && $PHPSTAN)'"
82+
else
83+
echo "No bridges found"
84+
fi

0 commit comments

Comments
 (0)