mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
wait
This commit is contained in:
parent
f925d64e60
commit
d6e82c8318
9
.github/workflows/cache-verify.yml
vendored
9
.github/workflows/cache-verify.yml
vendored
@ -256,7 +256,7 @@ jobs:
|
||||
echo "⏳ Waiting for $name ($url)..."
|
||||
for i in $(seq 1 "$max"); do
|
||||
status=$(curl -s -o /dev/null -w "%{http_code}" "$url" || echo "000")
|
||||
if [[ "$status" =~ ^2|3 ]]; then
|
||||
if [[ "$status" =~ ^2|3|400$ ]]; then
|
||||
echo "✅ $name responded with HTTP $status"
|
||||
return 0
|
||||
fi
|
||||
@ -264,8 +264,10 @@ jobs:
|
||||
sleep 2
|
||||
done
|
||||
echo "❌ Timeout: $name did not respond successfully at $url"
|
||||
echo "Last response body:"
|
||||
curl -i "$url" || echo "(curl failed)"
|
||||
docker compose logs "$name" || echo "(docker logs failed)"
|
||||
return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
# Lade die kopierten .env-Dateien in Shell-Variablen
|
||||
@ -274,7 +276,7 @@ jobs:
|
||||
source webapp/.env
|
||||
set +o allexport
|
||||
|
||||
# Verwende die URIs aus .env
|
||||
# Aufrufe
|
||||
wait_for "webapp" "$CLIENT_URI"
|
||||
wait_for "backend" "$BACKEND_HEALTH"
|
||||
wait_for "mailserver" "http://localhost:1080"
|
||||
@ -282,6 +284,7 @@ jobs:
|
||||
|
||||
echo "🎉 All services are up."
|
||||
|
||||
|
||||
#seeding database for tests
|
||||
- name: Seed database for tests
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user