Skip to content

Commit f9f7177

Browse files
PratikshaPratiksha
authored andcommitted
DEBUG
1 parent 1a319af commit f9f7177

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/cs-fixer.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ jobs:
1111

1212
services:
1313
neo4j:
14-
image: neo4j:latest
14+
image: neo4j:5.5 # Use a stable version instead of 'latest'
1515
ports:
1616
- 7474:7474
1717
- 7687:7687
1818
env:
1919
NEO4J_AUTH: neo4j/password
20-
options: --health-cmd="curl --silent --fail localhost:7474" --health-interval=10s --health-retries=5 --health-timeout=5s
20+
options:
21+
--health-cmd="curl --silent --fail http://localhost:7474"
22+
--health-interval=10s
23+
--health-retries=5
24+
--health-timeout=5s
2125

2226
steps:
2327
- name: Checkout code
@@ -26,6 +30,15 @@ jobs:
2630
- name: Set up Docker Compose
2731
run: docker-compose -f docker-compose.yml up -d
2832

33+
- name: Wait for services to be ready
34+
run: |
35+
echo "Waiting for Neo4j service to be ready..."
36+
# Check if Neo4j is up and running by polling the health endpoint
37+
until curl --silent --fail http://localhost:7474; do
38+
echo "Waiting for Neo4j to become available..."
39+
sleep 5
40+
done
41+
2942
- name: Install Composer dependencies
3043
run: docker exec -t php-app composer install --no-progress --prefer-dist
3144

0 commit comments

Comments
 (0)