@@ -17,126 +17,14 @@ jobs:
17
17
18
18
steps :
19
19
- uses : actions/checkout@v2
20
- - name : Cache Composer dependencies
21
- uses : actions/cache@v2
20
+ - name : Populate .env
21
+ run : |
22
+ echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
23
+ -
uses :
hoverkraft-tech/[email protected]
22
24
with :
23
- path : /tmp/composer-cache
24
- key : ${{ runner.os }}-8.0-${{ hashFiles('**/composer.lock') }}
25
- - uses : php-actions/composer@v6
26
- with :
27
- progress : yes
28
- php_version : 8.1
29
- version : 2
30
- - uses : php-actions/phpunit@v3
31
- with :
32
- configuration : phpunit.xml.dist
33
- php_version : 8.1
34
- memory_limit : 1024M
35
- version : 10
36
- testsuite : Integration
37
- bootstrap : vendor/autoload.php
38
-
39
- services :
40
- core1 :
41
- image : neo4j:4.4-enterprise
42
- options : >-
43
- --health-cmd "wget -q --method=HEAD http://localhost:7475 || exit 1"
44
- --health-start-period "60s"
45
- --health-interval "30s"
46
- --health-timeout "15s"
47
- --health-retries "5"
48
- ports :
49
- - 7688:7688
50
- - 7475:7475
51
- env :
52
- NEO4J_ACCEPT_LICENSE_AGREEMENT : yes
53
- NEO4JLABS_PLUGINS : ' ["apoc"]'
54
- NEO4J_AUTH : neo4j/testtest
55
- NEO4J_dbms_mode : CORE
56
- NEO4J_causal__clustering_discovery__advertised__address : core1:5000
57
- NEO4J_causal__clustering_transaction__advertised__address : core1:6000
58
- NEO4J_causal__clustering_raft__advertised__address : core1:7000
59
- NEO4J_causal__clustering_initial__discovery__members : core1:5000,core2:5000,core3:5000
60
- NEO4J_causal__clustering_discovery__listen__address : 0.0.0.0:5000
61
- NEO4J_causal__clustering_transaction__listen__address : 0.0.0.0:6000
62
- NEO4J_causal__clustering_raft__listen__address : 0.0.0.0:7000
63
- NEO4J_dbms_connector_http_listen__address : 0.0.0.0:7475
64
- NEO4J_dbms_connector_bolt_listen__address : 0.0.0.0:7688
65
-
66
- core2 :
67
- image : neo4j:4.4-enterprise
68
- options : >-
69
- --health-cmd "wget -q --method=HEAD http://localhost:7476 || exit 1"
70
- --health-start-period "60s"
71
- --health-interval "30s"
72
- --health-timeout "15s"
73
- --health-retries "5"
74
- ports :
75
- - 7689:7689
76
- - 7476:7476
77
- env :
78
- NEO4J_ACCEPT_LICENSE_AGREEMENT : yes
79
- NEO4JLABS_PLUGINS : ' ["apoc"]'
80
- NEO4J_AUTH : neo4j/testtest
81
- NEO4J_dbms_mode : CORE
82
- NEO4J_causal__clustering_discovery__advertised__address : core2:5000
83
- NEO4J_causal__clustering_transaction__advertised__address : core2:6000
84
- NEO4J_causal__clustering_raft__advertised__address : core2:7000
85
- NEO4J_causal__clustering_initial__discovery__members : core1:5000,core2:5000,core3:5000
86
- NEO4J_causal__clustering_discovery__listen__address : 0.0.0.0:5000
87
- NEO4J_causal__clustering_transaction__listen__address : 0.0.0.0:6000
88
- NEO4J_causal__clustering_raft__listen__address : 0.0.0.0:7000
89
- NEO4J_dbms_connector_http_listen__address : 0.0.0.0:7476
90
- NEO4J_dbms_connector_bolt_listen__address : 0.0.0.0:7689
91
-
92
- core3 :
93
- image : neo4j:4.4-enterprise
94
- options : >-
95
- --health-cmd "wget -q --method=HEAD http://localhost:7477 || exit 1"
96
- --health-start-period "60s"
97
- --health-interval "30s"
98
- --health-timeout "15s"
99
- --health-retries "5"
100
- ports :
101
- - 7690:7690
102
- - 7477:7477
103
- env :
104
- NEO4J_ACCEPT_LICENSE_AGREEMENT : yes
105
- NEO4JLABS_PLUGINS : ' ["apoc"]'
106
- NEO4J_AUTH : neo4j/testtest
107
- NEO4J_dbms_mode : CORE
108
- NEO4J_causal__clustering_discovery__advertised__address : core3:5000
109
- NEO4J_causal__clustering_transaction__advertised__address : core3:6000
110
- NEO4J_causal__clustering_raft__advertised__address : core3:7000
111
- NEO4J_causal__clustering_initial__discovery__members : core1:5000,core2:5000,core3:5000
112
- NEO4J_causal__clustering_discovery__listen__address : 0.0.0.0:5000
113
- NEO4J_causal__clustering_transaction__listen__address : 0.0.0.0:6000
114
- NEO4J_causal__clustering_raft__listen__address : 0.0.0.0:7000
115
- NEO4J_dbms_connector_http_listen__address : 0.0.0.0:7477
116
- NEO4J_dbms_connector_bolt_listen__address : 0.0.0.0:7690
117
-
118
- readreplica1 :
119
- image : neo4j:4.4-enterprise
120
- options : >-
121
- --health-cmd "wget -q --method=HEAD http://localhost:7478 || exit 1"
122
- --health-start-period "60s"
123
- --health-interval "30s"
124
- --health-timeout "15s"
125
- --health-retries "5"
126
- ports :
127
- - 7691:7691
128
- - 7478:7478
129
- env :
130
- NEO4J_ACCEPT_LICENSE_AGREEMENT : yes
131
- NEO4JLABS_PLUGINS : ' ["apoc"]'
132
- NEO4J_AUTH : neo4j/testtest
133
- NEO4J_dbms_mode : READ_REPLICA
134
- NEO4J_causal__clustering_discovery__advertised__address : readreplica1:5000
135
- NEO4J_causal__clustering_transaction__advertised__address : readreplica1:6000
136
- NEO4J_causal__clustering_raft__advertised__address : readreplica1:7000
137
- NEO4J_causal__clustering_initial__discovery__members : core1:5000,core2:5000,core3:5000
138
- NEO4J_causal__clustering_discovery__listen__address : 0.0.0.0:5000
139
- NEO4J_causal__clustering_transaction__listen__address : 0.0.0.0:6000
140
- NEO4J_causal__clustering_raft__listen__address : 0.0.0.0:7000
141
- NEO4J_dbms_connector_http_listen__address : 0.0.0.0:7478
142
- NEO4J_dbms_connector_bolt_listen__address : 0.0.0.0:7691
25
+ compose-file : ' ./docker-compose-neo4j-4.yml'
26
+ up-flags : ' --build'
27
+ - name : Test
28
+ run : |
29
+ docker compose run client composer install
30
+ docker compose run client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
0 commit comments