File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ jobs:
304
304
uses : actions/checkout@v4
305
305
306
306
- name : Set up Node.js
307
- - uses : actions/setup-node@v4
307
+ uses : actions/setup-node@v4
308
308
with :
309
309
node-version : ' 22.x'
310
310
@@ -365,7 +365,7 @@ jobs:
365
365
366
366
# Wait for TALAWA API to be healthy
367
367
timeout=60
368
- until docker-compose -f docker-compose.dev.yaml exec -T talawa-api-dev curl -sf "http://talawa-api-dev :4000/health" 2>&1 || [ $timeout -eq 0 ]; do
368
+ until docker-compose -f docker-compose.dev.yaml exec -T talawa-api-dev curl -sf "http://localhost :4000/health" 2>&1 || [ $timeout -eq 0 ]; do
369
369
echo "Waiting for API to start... ($timeout seconds remaining)"
370
370
sleep 1
371
371
((timeout--))
@@ -382,11 +382,12 @@ jobs:
382
382
383
383
# Ensure cleanup runs even if the script fails
384
384
cleanup() {
385
+ local exit_code=$?
385
386
echo "Cleaning up containers..."
386
387
if ! docker-compose -f docker-compose.dev.yaml down -v; then
387
388
echo "Warning : Failed to cleanup containers"
388
389
fi
389
- }
390
+ exit $exit_code }
390
391
391
392
trap cleanup EXIT
392
393
env :
You can’t perform that action at this time.
0 commit comments