10
10
tests :
11
11
runs-on : ubuntu-latest
12
12
env :
13
- CONNECTIONS : neo4j://neo4j:testtest@server1
13
+ CONNECTIONS : neo4j://neo4j:testtest@localhost7688
14
14
name : " Running Integration tests for PHP ${{ matrix.php-version }} on a Neo4j ${{ matrix.neo4j-version }} cluster"
15
15
strategy :
16
16
fail-fast : false
@@ -19,28 +19,17 @@ jobs:
19
19
neo4j-version : ["5.0", "5.6"]
20
20
21
21
services :
22
- neo4j :
23
- image : neo4j:${{ matrix.neo4j-version }}
24
- env :
25
- NEO4J_AUTH : neo4j/testtest
26
- NEO4JLABS_PLUGINS : ' ["apoc"]'
27
- ports :
28
- - 7687:7687
29
- - 7474:7474
30
- options : >-
31
- --health-cmd "wget -q --method=HEAD http://localhost:7474 || exit 1"
32
- --health-start-period "60s"
33
- --health-interval "30s"
34
- --health-timeout "15s"
35
- --health-retries "5"
36
22
server1 :
37
23
image : neo4j:${{ matrix.neo4j-version }}-enterprise
24
+ ports :
25
+ - 7688:7688
26
+ - 7475:7475
38
27
env :
39
28
NEO4J_initial_server_mode__constraint=PRIMARY
40
29
NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000
41
30
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
42
- NEO4j_server_bolt_advertised_address=server1:7687
43
- NEO4j_server_http_advertised_address=server1:7474
31
+ NEO4j_server_bolt_advertised_address=localhost:7688
32
+ NEO4j_server_http_advertised_address=localhost:7478
44
33
NEO4J_AUTH=neo4j/mypassword
45
34
options : >-
46
35
--health-cmd "wget -q --method=HEAD http://localhost:7474 || exit 1"
@@ -50,12 +39,15 @@ jobs:
50
39
--health-retries "5"
51
40
server2 :
52
41
image : neo4j:${{ matrix.neo4j-version }}-enterprise
42
+ ports :
43
+ - 7689:7689
44
+ - 7476:7476
53
45
env :
54
46
NEO4J_initial_server_mode__constraint=PRIMARY
55
47
NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000
56
48
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
57
- NEO4j_server_bolt_advertised_address=server2:7687
58
- NEO4j_server_http_advertised_address=server2:7474
49
+ NEO4j_server_bolt_advertised_address=localhost:7689
50
+ NEO4j_server_http_advertised_address=server2:7476
59
51
NEO4J_AUTH=neo4j/mypassword
60
52
options : >-
61
53
--health-cmd "wget -q --method=HEAD http://localhost:7474 || exit 1"
@@ -65,12 +57,15 @@ jobs:
65
57
--health-retries "5"
66
58
server3 :
67
59
image : neo4j:${{ matrix.neo4j-version }}-enterprise
60
+ ports :
61
+ - 7690:7690
62
+ - 7477:7477
68
63
env :
69
64
NEO4J_initial_server_mode__constraint=PRIMARY
70
65
NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000
71
66
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
72
- NEO4j_server_bolt_advertised_address=server3:7687
73
- NEO4j_server_http_advertised_address=server3:7474
67
+ NEO4j_server_bolt_advertised_address=localhost:7690
68
+ NEO4j_server_http_advertised_address=server3:7477
74
69
NEO4J_AUTH=neo4j/mypassword
75
70
options : >-
76
71
--health-cmd "wget -q --method=HEAD http://localhost:7474 || exit 1"
@@ -80,12 +75,15 @@ jobs:
80
75
--health-retries "5"
81
76
read-server4 :
82
77
image : neo4j:${{ matrix.neo4j-version }}-enterprise
78
+ ports :
79
+ - 7691:7691
80
+ - 7478:7478
83
81
env :
84
82
NEO4J_initial_server_mode__constraint=PRIMARY
85
83
NEO4J_dbms_cluster_discovery_endpoints=server1:5000,server2:5000,server3:5000
86
84
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
87
- NEO4j_server_bolt_advertised_address=read-server4:7687
88
- NEO4j_server_http_advertised_address=read-server4:7474
85
+ NEO4j_server_bolt_advertised_address=localhost:7691
86
+ NEO4j_server_http_advertised_address=localhost:7478
89
87
NEO4J_AUTH=neo4j/mypassword
90
88
options : >-
91
89
--health-cmd "wget -q --method=HEAD http://localhost:7474 || exit 1"
0 commit comments