diff --git a/.gitmodules b/.gitmodules index 361273b..ebca9ef 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "HarborForge.Backend.Test"] path = HarborForge.Backend.Test - url = https://zhi:rT5Wjw24mV4all38fIoNQfl2@git.hangman-lab.top/zhi/HarborForge.Backend.Test.git + url = https://git.hangman-lab.top/zhi/HarborForge.Backend.Test.git [submodule "HarborForge.Frontend.Test"] path = HarborForge.Frontend.Test - url = https://zhi:rT5Wjw24mV4all38fIoNQfl2@git.hangman-lab.top/zhi/HarborForge.Frontend.Test.git + url = https://git.hangman-lab.top/zhi/HarborForge.Frontend.Test.git diff --git a/HarborForge.Frontend.Test b/HarborForge.Frontend.Test index e8ffed4..3b30119 160000 --- a/HarborForge.Frontend.Test +++ b/HarborForge.Frontend.Test @@ -1 +1 @@ -Subproject commit e8ffed41eeb0e387c9f65875fb3ae0b6b2d7499e +Subproject commit 3b30119317e93242b855f6d9c7b4c4f6aaf0c49c diff --git a/run-test-frontend.sh b/run-test-frontend.sh index 99c5efc..0ea4759 100755 --- a/run-test-frontend.sh +++ b/run-test-frontend.sh @@ -58,6 +58,11 @@ echo "๐Ÿ“ฆ Using compose file: $COMPOSE_FILE" echo "๐Ÿงน Cleaning up previous containers..." docker compose -f "$COMPOSE_FILE" down -v 2>/dev/null || true +# Build frontend with correct API base URL (force no cache, remove image first) +echo "๐Ÿ”จ Building frontend..." +docker rmi harborforge-test-frontend:dev 2>/dev/null || true +docker compose -f "$COMPOSE_FILE" build --no-cache --build-arg VITE_API_BASE=http://backend:8000 frontend + # Start services echo "๐Ÿ“ฆ Starting services..." docker compose -f "$COMPOSE_FILE" up -d @@ -83,7 +88,7 @@ echo "โœ… Services ready!" # Run test echo "๐Ÿงช Running test..." -docker compose -f "$COMPOSE_FILE" run --rm test +docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test TEST_EXIT_CODE=$? # Cleanup decision based on expose-port