@@ -130,16 +130,25 @@ jobs:
130130 with :
131131 timeout_minutes : 10
132132 max_attempts : 5
133- command : cd ${{ matrix.package }} && find src -name '*.test.ts' ! -name '*.integration.test.ts' | sort | xargs -I {} bun test --reporter=junit --reporter-outfile=test-results.xml {}
133+ command : |
134+ cd ${{ matrix.package }}
135+ echo "🧪 Running ${{ matrix.package }} tests..."
136+ TEST_OUTPUT=$(find src -name '*.test.ts' ! -name '*.integration.test.ts' | sort | xargs -I {} bun test {} 2>&1)
137+ echo "$TEST_OUTPUT"
138+
139+ # Extract and display failed tests
140+ FAILED_TESTS=$(echo "$TEST_OUTPUT" | grep -E "(✗|FAIL|Failed|Error:)" || true)
141+ if [ ! -z "$FAILED_TESTS" ]; then
142+ echo ""
143+ echo "❌ =============== FAILED TESTS SUMMARY ==============="
144+ echo "$FAILED_TESTS"
145+ echo "====================================================="
146+ exit 1
147+ else
148+ echo "✅ All tests passed!"
149+ fi
150+
134151
135- - name : Publish Test Results
136- uses : dorny/test-reporter@v1
137- if : always()
138- with :
139- name : ${{ matrix.package }} Test Results
140- path : ${{ matrix.package }}/test-results.xml
141- reporter : java-junit
142- fail-on-error : true
143152
144153 # - name: Open interactive debug shell
145154 # if: ${{ failure() }}
@@ -199,16 +208,25 @@ jobs:
199208 with :
200209 timeout_minutes : 15
201210 max_attempts : 3
202- command : cd ${{ matrix.package }} && find src -name '*.integration.test.ts' | sort | xargs -I {} bun test --reporter=junit --reporter-outfile=integration-test-results.xml {}
211+ command : |
212+ cd ${{ matrix.package }}
213+ echo "🧪 Running ${{ matrix.package }} integration tests..."
214+ TEST_OUTPUT=$(find src -name '*.integration.test.ts' | sort | xargs -I {} bun test {} 2>&1)
215+ echo "$TEST_OUTPUT"
216+
217+ # Extract and display failed tests
218+ FAILED_TESTS=$(echo "$TEST_OUTPUT" | grep -E "(✗|FAIL|Failed|Error:)" || true)
219+ if [ ! -z "$FAILED_TESTS" ]; then
220+ echo ""
221+ echo "❌ =============== FAILED TESTS SUMMARY ==============="
222+ echo "$FAILED_TESTS"
223+ echo "====================================================="
224+ exit 1
225+ else
226+ echo "✅ All integration tests passed!"
227+ fi
228+
203229
204- - name : Publish Integration Test Results
205- uses : dorny/test-reporter@v1
206- if : always()
207- with :
208- name : ${{ matrix.package }} Integration Test Results
209- path : ${{ matrix.package }}/integration-test-results.xml
210- reporter : java-junit
211- fail-on-error : true
212230
213231 # - name: Open interactive debug shell
214232 # if: ${{ failure() }}
0 commit comments