Skip to content

Commit 1544502

Browse files
committed
indentation 1
1 parent cfec867 commit 1544502

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/pull-request.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ jobs:
320320
321321
- name: Check if Talawa API starts in Docker
322322
run : |
323-
# Ensure no containers are running
323+
# Ensure no containers are running
324324
docker-compose -f docker-compose.dev.yaml down -v || true
325325
326326
# Verify docker-compose file exists
@@ -339,7 +339,7 @@ jobs:
339339
# Wait for MongoDB and Redis to be ready
340340
echo "Waiting for MongoDB..."
341341
timeout=30
342-
until docker-compose -f docker-compose.dev.yaml exec -T mongodb mongo --eval "db.runCommand('ping').ok">/dev/null 2>&1 || [ $timeout -eq 0]; do
342+
until docker-compose -f docker-compose.dev.yaml exec -T mongodb mongo --eval "db.runCommand('ping').ok">/dev/null 2>&1 || [ $timeout -eq 0 ]; do
343343
sleep 1
344344
((timeout--))
345345
done
@@ -366,19 +366,19 @@ jobs:
366366
# Wait for TALAWA API to be healthy
367367
timeout=60
368368
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-
echo "Waiting for API to start... ($timeout seconds remaining)"
370-
sleep 1
371-
((timeout--))
372-
done
369+
echo "Waiting for API to start... ($timeout seconds remaining)"
370+
sleep 1
371+
((timeout--))
372+
done
373373
374-
if [ $timeout -eq 0 ]; then
375-
echo "Error: API failed to start within timeout"
376-
docker-compose -f docker-compose.dev.yaml logs
377-
docker-compose -f docker-compose.dev.yaml down -v
378-
exit 1
379-
fi
374+
if [ $timeout -eq 0 ]; then
375+
echo "Error: API failed to start within timeout"
376+
docker-compose -f docker-compose.dev.yaml logs
377+
docker-compose -f docker-compose.dev.yaml down -v
378+
exit 1
379+
fi
380380
381-
echo "API started successfully"
381+
echo "API started successfully"
382382
383383
# Ensure cleanup runs even if the script fails
384384
cleanup() {
@@ -387,7 +387,8 @@ jobs:
387387
if ! docker-compose -f docker-compose.dev.yaml down -v; then
388388
echo "Warning: Failed to cleanup containers"
389389
fi
390-
exit $exit_code }
390+
exit $exit_code
391+
}
391392

392393
trap cleanup EXIT
393394
env:

0 commit comments

Comments
 (0)