1111jobs :
1212 tests-v4 :
1313 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"
1518
1619 steps :
1720 - uses : actions/checkout@v2
1821 - name : Populate .env
1922 run : |
20- echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
23+ echo "PHP_VERSION=${{ matrix.php }}" > .env
24+ echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
2125 -
uses :
hoverkraft-tech/[email protected] 2226 name : Start services
2327 with :
@@ -28,22 +32,35 @@ jobs:
2832 docker compose run client composer install
2933 - name : Test neo4j://
3034 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
3239 - name : Test bolt://
3340 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
3545 - name : Test http://
3646 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
3851 tests-v5 :
3952 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"
4157
4258 steps :
4359 - uses : actions/checkout@v2
4460 - name : Populate .env
4561 run : |
46- echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
62+ echo "PHP_VERSION=${{ matrix.php }}" > .env
63+ echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
4764 -
uses :
hoverkraft-tech/[email protected] 4865 name : Start services
4966 with :
@@ -54,10 +71,19 @@ jobs:
5471 docker compose run client composer install
5572 - name : Test neo4j://
5673 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
5878 - name : Test bolt://
5979 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
6184 - name : Test http://
6285 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