-
Notifications
You must be signed in to change notification settings - Fork 40
142 lines (135 loc) · 5.58 KB
/
integration-test-cluster-neo4j-4.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Integration Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
env:
CONNECTION: neo4j://neo4j:testtest@localhost:7688
name: "Running on PHP 8.1 in a Neo4j 4.4 cluster"
steps:
- uses: actions/checkout@v2
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-8.0-${{ hashFiles('**/composer.lock') }}
- uses: php-actions/composer@v6
with:
progress: yes
php_version: 8.1
version: 2
- uses: php-actions/phpunit@v3
with:
configuration: phpunit.xml.dist
php_version: 8.1
memory_limit: 1024M
version: 10
testsuite: Integration
bootstrap: vendor/autoload.php
services:
core1:
image: neo4j:4.4-enterprise
options: >-
--health-cmd "wget -q --method=HEAD http://localhost:7475 || exit 1"
--health-start-period "60s"
--health-interval "30s"
--health-timeout "15s"
--health-retries "5"
ports:
- 7688:7688
- 7475:7475
env:
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
NEO4JLABS_PLUGINS: '["apoc"]'
NEO4J_AUTH: neo4j/testtest
NEO4J_dbms_mode: CORE
NEO4J_causal__clustering_discovery__advertised__address: core1:5000
NEO4J_causal__clustering_transaction__advertised__address: core1:6000
NEO4J_causal__clustering_raft__advertised__address: core1:7000
NEO4J_causal__clustering_initial__discovery__members: core1:5000,core2:5000,core3:5000
NEO4J_causal__clustering_discovery__listen__address: 0.0.0.0:5000
NEO4J_causal__clustering_transaction__listen__address: 0.0.0.0:6000
NEO4J_causal__clustering_raft__listen__address: 0.0.0.0:7000
NEO4J_dbms_connector_http_listen__address: 0.0.0.0:7475
NEO4J_dbms_connector_bolt_listen__address: 0.0.0.0:7688
core2:
image: neo4j:4.4-enterprise
options: >-
--health-cmd "wget -q --method=HEAD http://localhost:7476 || exit 1"
--health-start-period "60s"
--health-interval "30s"
--health-timeout "15s"
--health-retries "5"
ports:
- 7689:7689
- 7476:7476
env:
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
NEO4JLABS_PLUGINS: '["apoc"]'
NEO4J_AUTH: neo4j/testtest
NEO4J_dbms_mode: CORE
NEO4J_causal__clustering_discovery__advertised__address: core2:5000
NEO4J_causal__clustering_transaction__advertised__address: core2:6000
NEO4J_causal__clustering_raft__advertised__address: core2:7000
NEO4J_causal__clustering_initial__discovery__members: core1:5000,core2:5000,core3:5000
NEO4J_causal__clustering_discovery__listen__address: 0.0.0.0:5000
NEO4J_causal__clustering_transaction__listen__address: 0.0.0.0:6000
NEO4J_causal__clustering_raft__listen__address: 0.0.0.0:7000
NEO4J_dbms_connector_http_listen__address: 0.0.0.0:7476
NEO4J_dbms_connector_bolt_listen__address: 0.0.0.0:7689
core3:
image: neo4j:4.4-enterprise
options: >-
--health-cmd "wget -q --method=HEAD http://localhost:7477 || exit 1"
--health-start-period "60s"
--health-interval "30s"
--health-timeout "15s"
--health-retries "5"
ports:
- 7690:7690
- 7477:7477
env:
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
NEO4JLABS_PLUGINS: '["apoc"]'
NEO4J_AUTH: neo4j/testtest
NEO4J_dbms_mode: CORE
NEO4J_causal__clustering_discovery__advertised__address: core3:5000
NEO4J_causal__clustering_transaction__advertised__address: core3:6000
NEO4J_causal__clustering_raft__advertised__address: core3:7000
NEO4J_causal__clustering_initial__discovery__members: core1:5000,core2:5000,core3:5000
NEO4J_causal__clustering_discovery__listen__address: 0.0.0.0:5000
NEO4J_causal__clustering_transaction__listen__address: 0.0.0.0:6000
NEO4J_causal__clustering_raft__listen__address: 0.0.0.0:7000
NEO4J_dbms_connector_http_listen__address: 0.0.0.0:7477
NEO4J_dbms_connector_bolt_listen__address: 0.0.0.0:7690
readreplica1:
image: neo4j:4.4-enterprise
options: >-
--health-cmd "wget -q --method=HEAD http://localhost:7478 || exit 1"
--health-start-period "60s"
--health-interval "30s"
--health-timeout "15s"
--health-retries "5"
ports:
- 7691:7691
- 7478:7478
env:
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
NEO4JLABS_PLUGINS: '["apoc"]'
NEO4J_AUTH: neo4j/testtest
NEO4J_dbms_mode: READ_REPLICA
NEO4J_causal__clustering_discovery__advertised__address: readreplica1:5000
NEO4J_causal__clustering_transaction__advertised__address: readreplica1:6000
NEO4J_causal__clustering_raft__advertised__address: readreplica1:7000
NEO4J_causal__clustering_initial__discovery__members: core1:5000,core2:5000,core3:5000
NEO4J_causal__clustering_discovery__listen__address: 0.0.0.0:5000
NEO4J_causal__clustering_transaction__listen__address: 0.0.0.0:6000
NEO4J_causal__clustering_raft__listen__address: 0.0.0.0:7000
NEO4J_dbms_connector_http_listen__address: 0.0.0.0:7478
NEO4J_dbms_connector_bolt_listen__address: 0.0.0.0:7691