@@ -16,30 +16,21 @@ jobs:
16
16
17
17
steps :
18
18
- uses : actions/checkout@v4
19
- - name : Populate .env
19
+ - name : Run tests Neo4j 4
20
20
run : |
21
- 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 \
21
+ docker compose run --rm \
34
22
-e PHP_VERSION=${{ matrix.php }} \
35
23
-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 \
24
+ -f docker-compose-neo4j-4.yml \
25
+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
26
+ docker compose run --rm \
40
27
-e PHP_VERSION=${{ matrix.php }} \
41
- -e CONNECTION=bolt://neo4j:testtest@neo4j \
42
- client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
28
+ -e CONNECTION=neo4j://bolt:testtest@neo4j \
29
+ -f docker-compose-neo4j-4.yml \
30
+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
31
+
32
+ docker compose -f docker-compose-neo4j-4.yml down --remove-orphans --volumes
33
+
43
34
tests-v5 :
44
35
runs-on : ubuntu-latest
45
36
strategy :
@@ -49,27 +40,15 @@ jobs:
49
40
50
41
steps :
51
42
- uses : actions/checkout@v4
52
- - name : Populate .env
53
- run : |
54
- echo "PHP_VERSION=${{ matrix.php }}" > .env
55
- 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://
43
+ - name : Run tests Neo4j 5
65
44
run : |
66
45
docker compose run --rm \
67
46
-e PHP_VERSION=${{ matrix.php }} \
68
47
-e CONNECTION=neo4j://neo4j:testtest@neo4j \
69
- client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
70
- - name : Test bolt://
71
- run : |
48
+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
72
49
docker compose run --rm \
73
50
-e PHP_VERSION=${{ matrix.php }} \
74
- -e CONNECTION=bolt://neo4j:testtest@neo4j \
75
- client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
51
+ -e CONNECTION=neo4j://bolt:testtest@neo4j \
52
+ client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
53
+
54
+ docker compose down --remove-orphans --volumes
0 commit comments