Skip to content

Commit 18eadb7

Browse files
edwhclaude
andcommitted
fix: Resolve setup-test-database.sh path for submodule CI jobs
The script path ~/scripts/ only works in the main build-and-test job where FreegleDocker is checked out at ~/project. In submodule CI jobs, FreegleDocker is cloned to ~/FreegleDocker. Now checks both locations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d6d1033 commit 18eadb7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.circleci/orb/freegle-tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,19 @@ commands:
882882
steps:
883883
- run:
884884
name: Set up test database and environment
885-
command: ~/scripts/setup-test-database.sh
885+
command: |
886+
# Find the script in either FreegleDocker clone or project checkout
887+
if [ -f "$HOME/FreegleDocker/scripts/setup-test-database.sh" ]; then
888+
"$HOME/FreegleDocker/scripts/setup-test-database.sh"
889+
elif [ -f "$HOME/project/scripts/setup-test-database.sh" ]; then
890+
"$HOME/project/scripts/setup-test-database.sh"
891+
else
892+
echo "❌ setup-test-database.sh not found!"
893+
echo "Checked: $HOME/FreegleDocker/scripts/ and $HOME/project/scripts/"
894+
ls -la "$HOME/FreegleDocker/scripts/" 2>/dev/null || echo "$HOME/FreegleDocker/scripts/ not found"
895+
ls -la "$HOME/project/scripts/" 2>/dev/null || echo "$HOME/project/scripts/ not found"
896+
exit 1
897+
fi
886898
887899
run-vitest-tests:
888900
description: "Run Vitest unit tests for iznik-nuxt3 components"

0 commit comments

Comments
 (0)