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