Skip to content

Commit c0c7494

Browse files
committed
fix: add JBang installation and proper exit codes
- Add JBang installation step to GitHub Actions workflow - Fix run-integration-tests.sh to exit with code 1 on failures - Ensure GitHub Actions properly reports test failures
1 parent a5dc486 commit c0c7494

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

β€Ž.github/workflows/integration-tests-manual.ymlβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ jobs:
3030
distribution: 'temurin'
3131
cache: maven
3232

33+
- name: Install JBang
34+
run: |
35+
echo "πŸ“¦ Installing JBang..."
36+
curl -Ls https://sh.jbang.dev | bash -s - app setup
37+
echo "$HOME/.jbang/bin" >> $GITHUB_PATH
38+
export PATH="$HOME/.jbang/bin:$PATH"
39+
jbang version
40+
3341
- name: Update Spring AI version
3442
run: |
3543
echo "πŸ“¦ Updating Spring AI version to: ${{ inputs.spring_ai_version }}"

β€Žintegration-testing/scripts/run-integration-tests.shβ€Ž

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,12 @@ fi
148148

149149
echo "" | tee -a "${LOG_FILE}"
150150
echo "πŸ“ Full log: ${LOG_FILE}"
151-
echo "βœ… Testing completed!"
151+
152+
# Exit with proper code
153+
if [ ${failed} -gt 0 ]; then
154+
echo "❌ Testing completed with failures!"
155+
exit 1
156+
else
157+
echo "βœ… Testing completed!"
158+
exit 0
159+
fi

0 commit comments

Comments
Β (0)