@@ -16,30 +16,22 @@ jobs:
1616
1717 steps :
1818 - uses : actions/checkout@v4
19- - name : Populate .env
19+ - name : Run tests Neo4j 4
2020 run : |
21+
2122 echo "PHP_VERSION=${{ matrix.php }}" > .env
22- echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
23- -
uses :
hoverkraft-tech/[email protected] 24- name : Start services
25- with :
26- compose-file : " ./docker-compose-neo4j-4.yml"
27- up-flags : " --build --remove-orphans"
28- - name : Composer install
29- run : |
30- docker compose -f docker-compose-neo4j-4.yml run client composer install
31- - name : Test neo4j://
32- run : |
33- docker compose -f docker-compose-neo4j-4.yml run \
34- -e PHP_VERSION=${{ matrix.php }} \
35- -e CONNECTION=neo4j://neo4j:testtest@neo4j \
36- client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
37- - name : Test bolt://
38- run : |
39- docker compose -f docker-compose-neo4j-4.yml run \
40- -e PHP_VERSION=${{ matrix.php }} \
41- -e CONNECTION=bolt://neo4j:testtest@neo4j \
42- client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
23+ echo "CONNECTION=bolt://neo4j:testtest@neo4j" >> .env
24+
25+ docker compose -f docker-compose-neo4j-4.yml up -d --build --remove-orphans --wait neo4j
26+
27+ docker compose -f docker-compose-neo4j-4.yml run --rm --no-deps \
28+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
29+
30+ docker compose -f docker-compose-neo4j-4.yml run --rm --no-deps \
31+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
32+
33+ docker compose -f docker-compose-neo4j-4.yml down --remove-orphans --volumes
34+
4335 tests-v5 :
4436 runs-on : ubuntu-latest
4537 strategy :
@@ -53,23 +45,17 @@ jobs:
5345 run : |
5446 echo "PHP_VERSION=${{ matrix.php }}" > .env
5547 echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
56- -
uses :
hoverkraft-tech/[email protected] 57- name : Start services
58- with :
59- compose-file : " ./docker-compose.yml"
60- up-flags : " --build"
61- - name : Composer install
62- run : |
63- docker compose run --rm client composer install
64- - name : Test neo4j://
48+ - name : Run tests Neo4j 5
6549 run : |
66- docker compose run --rm \
67- -e PHP_VERSION=${{ matrix.php }} \
68- -e CONNECTION=neo4j://neo4j:testtest@neo4j \
69- client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
70- - name : Test bolt://
71- run : |
72- docker compose run --rm \
73- -e PHP_VERSION=${{ matrix.php }} \
74- -e CONNECTION=bolt://neo4j:testtest@neo4j \
75- client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
50+ echo "PHP_VERSION=${{ matrix.php }}" > .env
51+ echo "CONNECTION=bolt://neo4j:testtest@neo4j" >> .env
52+
53+ docker compose up -d --build --remove-orphans --wait neo4j
54+
55+ docker compose run --rm --no-deps \
56+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
57+
58+ docker compose run --rm --no-deps \
59+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
60+
61+ docker compose down --remove-orphans --volumes
0 commit comments