Skip to content

Commit 9614bd7

Browse files
committed
Merge PHPStan packages and bridges steps
- Remove redundant 'Run PHPStan on bridges' step - Add link script to 'Run PHPStan on packages' step - Bridge packages are already included in $PACKAGES variable - Simplifies workflow while maintaining functionality
1 parent e182adb commit 9614bd7

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/code-quality.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,7 @@ jobs:
7777
run: |
7878
source .github/workflows/.utils.sh
7979
80+
# Run link script to make Bridge packages available
81+
./link
82+
8083
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_UP && $PHPSTAN)'"
81-
82-
- name: Run PHPStan on bridges
83-
run: |
84-
source .github/workflows/.utils.sh
85-
86-
BRIDGES=$(find src/*/src/Bridge/* -name composer.json -not -path "*/vendor/*" 2>/dev/null | sed 's|/composer.json||' | sed 's|^src/||' | sort | tr '\n' ' ')
87-
if [ -n "$BRIDGES" ]; then
88-
echo "Bridges: $BRIDGES"
89-
./link
90-
echo "$BRIDGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_UP && $PHPSTAN)'"
91-
else
92-
echo "No bridges found"
93-
fi

0 commit comments

Comments
 (0)