File tree Expand file tree Collapse file tree 4 files changed +48
-6
lines changed Expand file tree Collapse file tree 4 files changed +48
-6
lines changed Original file line number Diff line number Diff line change 17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
+ - name : Set up Docker Buildx
21
+ uses : docker/setup-buildx-action@v2
22
+
23
+ - name : Build & cache client image
24
+ uses : docker/build-push-action@v3
25
+ with :
26
+ context : .
27
+ file : Dockerfile
28
+ load : true
29
+ push : false
30
+ cache-from : type=gha
31
+ cache-to : type=gha,mode=max
32
+ build-args : PHP_VERSION=8.1.31
33
+ tags : integration-client:8.1.31
34
+
20
35
- name : Populate .env
21
36
run : |
22
37
echo "PHP_VERSION=8.1.31" > .env
Original file line number Diff line number Diff line change 17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
+ - name : Set up Docker Buildx
21
+ uses : docker/setup-buildx-action@v2
22
+
23
+ - name : Build & cache client image
24
+ uses : docker/build-push-action@v3
25
+ with :
26
+ context : .
27
+ file : Dockerfile
28
+ load : true
29
+ push : false
30
+ cache-from : type=gha
31
+ cache-to : type=gha,mode=max
32
+ build-args : PHP_VERSION=${{ matrix.php }}
33
+ tags : integration-client:${{ matrix.php }}
34
+
20
35
- name : Populate .env
21
36
run : |
22
37
echo "PHP_VERSION=${{ matrix.php }}" > .env
38
53
39
54
- name : Run integration tests
40
55
run : |
41
- docker compose -f docker-compose-neo4j-4.yml up -d --build --remove-orphans --wait \
56
+ docker compose -f docker-compose-neo4j-4.yml up -d --no- build --remove-orphans --wait \
42
57
server1 \
43
58
server2 \
44
59
server3 \
Original file line number Diff line number Diff line change @@ -17,24 +17,21 @@ jobs:
17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
- # 2) enable BuildKit
21
20
- name : Set up Docker Buildx
22
21
uses : docker/setup-buildx-action@v2
23
22
24
- # 3) build & cache the client image
25
23
- name : Build & cache client image
26
24
uses : docker/build-push-action@v3
27
25
with :
28
26
context : .
29
27
file : Dockerfile
30
- load : true # so the image is available locally
28
+ load : true
31
29
push : false
32
30
cache-from : type=gha
33
31
cache-to : type=gha,mode=max
34
32
build-args : PHP_VERSION=${{ matrix.php }}
35
33
tags : integration-client:${{ matrix.php }}
36
34
37
-
38
35
- name : Populate .env
39
36
run : |
40
37
echo "PHP_VERSION=${{ matrix.php }}" > .env
Original file line number Diff line number Diff line change 20
20
run : |
21
21
echo "PHP_VERSION=${{ matrix.php }}" > .env
22
22
23
+ - name : Set up Docker Buildx
24
+ uses : docker/setup-buildx-action@v2
25
+
26
+ - name : Build & cache client image
27
+ uses : docker/build-push-action@v3
28
+ with :
29
+ context : .
30
+ file : Dockerfile
31
+ load : true
32
+ push : false
33
+ cache-from : type=gha
34
+ cache-to : type=gha,mode=max
35
+ build-args : PHP_VERSION=${{ matrix.php }}
36
+ tags : integration-client:${{ matrix.php }}
37
+
23
38
- name : Cache PHP deps
24
39
id : cache-php-deps
25
40
uses : actions/cache@v4
48
63
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
49
64
50
65
docker compose -f docker-compose-neo4j-4.yml run --rm \
51
- client phpunit.xml.dist --testsuite Integration
66
+ client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
52
67
53
68
tests-v5 :
54
69
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments