11
11
jobs :
12
12
tests-v4 :
13
13
runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ php : [8.1, 8.3]
14
17
name : " Running on PHP 8.1 with a Neo4j 4 instance connecting over all available protocols"
15
18
16
19
steps :
17
20
- uses : actions/checkout@v2
18
- - name : Populate .env
19
- run : |
20
- echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
21
21
-
uses :
hoverkraft-tech/[email protected]
22
22
name : Start services
23
23
with :
@@ -28,22 +28,31 @@ jobs:
28
28
docker compose run client composer install
29
29
- name : Test neo4j://
30
30
run : |
31
- docker compose run -e CONNECTION=neo4j://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
31
+ docker compose run \
32
+ -e PHP_VERSION=${{ matrix.php }} \
33
+ -e CONNECTION=neo4j://neo4j:testtest@neo4j \
34
+ client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
32
35
- name : Test bolt://
33
36
run : |
34
- docker compose run -e CONNECTION=bolt://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
37
+ docker compose run \
38
+ -e PHP_VERSION=${{ matrix.php }} \
39
+ -e CONNECTION=bolt://neo4j:testtest@neo4j \
40
+ client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
35
41
- name : Test http://
36
42
run : |
37
- docker compose run -e CONNECTION=http://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
43
+ docker compose run \
44
+ -e PHP_VERSION=${{ matrix.php }} \
45
+ -e CONNECTION=http://neo4j:testtest@neo4j \
46
+ client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
38
47
tests-v5 :
39
48
runs-on : ubuntu-latest
49
+ strategy :
50
+ matrix :
51
+ php : [8.1, 8.3]
40
52
name : " Running on PHP 8.1 with a Neo4j 5 instance connecting over all available protocols"
41
53
42
54
steps :
43
55
- uses : actions/checkout@v2
44
- - name : Populate .env
45
- run : |
46
- echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
47
56
-
uses :
hoverkraft-tech/[email protected]
48
57
name : Start services
49
58
with :
@@ -54,10 +63,19 @@ jobs:
54
63
docker compose run client composer install
55
64
- name : Test neo4j://
56
65
run : |
57
- docker compose run -e CONNECTION=neo4j://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
66
+ docker compose run \
67
+ -e PHP_VERSION=${{ matrix.php }} \
68
+ -e CONNECTION=neo4j://neo4j:testtest@neo4j \
69
+ client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
58
70
- name : Test bolt://
59
71
run : |
60
- docker compose run -e CONNECTION=bolt://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
72
+ docker compose run \
73
+ -e PHP_VERSION=${{ matrix.php }} \
74
+ -e CONNECTION=bolt://neo4j:testtest@neo4j \
75
+ client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
61
76
- name : Test http://
62
77
run : |
63
- docker compose run -e CONNECTION=http://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
78
+ docker compose run \
79
+ -e PHP_VERSION=${{ matrix.php }} \
80
+ -e CONNECTION=http://neo4j:testtest@neo4j \
81
+ client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
0 commit comments