File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ jobs:
11
11
12
12
services :
13
13
neo4j :
14
- image : neo4j:latest
14
+ image : neo4j:5.5 # Use a stable version instead of ' latest'
15
15
ports :
16
16
- 7474:7474
17
17
- 7687:7687
18
18
env :
19
19
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
21
25
22
26
steps :
23
27
- name : Checkout code
26
30
- name : Set up Docker Compose
27
31
run : docker-compose -f docker-compose.yml up -d
28
32
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
+
29
42
- name : Install Composer dependencies
30
43
run : docker exec -t php-app composer install --no-progress --prefer-dist
31
44
You can’t perform that action at this time.
0 commit comments