Skip to content

Commit b197af8

Browse files
committed
-
1 parent 58140f4 commit b197af8

File tree

2 files changed

+44
-9
lines changed

2 files changed

+44
-9
lines changed

.github/workflows/code-quality.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,19 @@ jobs:
6868
run: |
6969
cd demo/ && $COMPOSER_UP && ../link && $PHPSTAN
7070
71+
- name: Run PHPStan on platform bridges
72+
run: |
73+
# Platform bridges must run FIRST and SEQUENTIALLY because they depend on symfony/ai-platform
74+
# which is in the same directory tree. Running in parallel causes recursive vendor copies
75+
# when bridge A's vendor/symfony/ai-platform includes bridge B's vendor (if B finished first).
76+
source .github/workflows/.utils.sh
77+
78+
BRIDGES=$(find src/platform/src/Bridge/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | tr '\n' ' ')
79+
echo "Bridges: $BRIDGES"
80+
for BRIDGE in $BRIDGES; do
81+
_run_task "$BRIDGE" "(cd src/platform/src/Bridge/$BRIDGE && $COMPOSER_UP && $PHPSTAN)"
82+
done
83+
7184
- name: Run PHPStan on packages
7285
run: |
7386
source .github/workflows/.utils.sh
@@ -89,11 +102,3 @@ jobs:
89102
BRIDGES=$(find src/agent/src/Bridge/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | tr '\n' ' ')
90103
echo "Bridges: $BRIDGES"
91104
echo "$BRIDGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/agent/src/Bridge/{} && $COMPOSER_UP && $PHPSTAN)'"
92-
93-
- name: Run PHPStan on platform bridges
94-
run: |
95-
source .github/workflows/.utils.sh
96-
97-
BRIDGES=$(find src/platform/src/Bridge/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | tr '\n' ' ')
98-
echo "Bridges: $BRIDGES"
99-
echo "$BRIDGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/platform/src/Bridge/{} && $COMPOSER_UP && $PHPSTAN)'"

.github/workflows/unit-tests.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
echo PHPUNIT='vendor/bin/phpunit' >> $GITHUB_ENV
5252
[ 'lowest' = '${{ matrix.dependency-version }}' ] && export SYMFONY_DEPRECATIONS_HELPER=weak
5353
54-
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' ' ')
54+
# Exclude Bridge directories - they are handled separately to avoid recursive vendor copies
55+
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' ' ')
5556
echo "Packages: $PACKAGES"
5657
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
5758
@@ -85,8 +86,37 @@ jobs:
8586
- name: Build root packages
8687
run: php .github/build-packages.php
8788

89+
- name: Run platform bridge tests
90+
run: |
91+
# Platform bridges must run FIRST and SEQUENTIALLY because they depend on symfony/ai-platform
92+
# which is in the same directory tree. Running in parallel causes recursive vendor copies
93+
# when bridge A's vendor/symfony/ai-platform includes bridge B's vendor (if B finished first).
94+
source .github/workflows/.utils.sh
95+
96+
BRIDGES=$(find src/platform/src/Bridge/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | tr '\n' ' ')
97+
echo "Platform Bridges: $BRIDGES"
98+
for BRIDGE in $BRIDGES; do
99+
_run_task "$BRIDGE" "(cd src/platform/src/Bridge/$BRIDGE && $COMPOSER_UP && $PHPUNIT)"
100+
done
101+
88102
- name: Run packages tests
89103
run: |
90104
source .github/workflows/.utils.sh
91105
92106
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_UP && $PHPUNIT)'"
107+
108+
- name: Run store bridge tests
109+
run: |
110+
source .github/workflows/.utils.sh
111+
112+
BRIDGES=$(find src/store/src/Bridge/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | tr '\n' ' ')
113+
echo "Store Bridges: $BRIDGES"
114+
echo "$BRIDGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/store/src/Bridge/{} && $COMPOSER_UP && $PHPUNIT)'"
115+
116+
- name: Run tool bridge tests
117+
run: |
118+
source .github/workflows/.utils.sh
119+
120+
BRIDGES=$(find src/agent/src/Bridge/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | tr '\n' ' ')
121+
echo "Tool Bridges: $BRIDGES"
122+
echo "$BRIDGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/agent/src/Bridge/{} && $COMPOSER_UP && $PHPUNIT)'"

0 commit comments

Comments
 (0)