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 1717 steps :
1818 - uses : actions/checkout@v4
1919
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+
2035 - name : Populate .env
2136 run : |
2237 echo "PHP_VERSION=8.1.31" > .env
Original file line number Diff line number Diff line change 1717 steps :
1818 - uses : actions/checkout@v4
1919
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+
2035 - name : Populate .env
2136 run : |
2237 echo "PHP_VERSION=${{ matrix.php }}" > .env
3853
3954 - name : Run integration tests
4055 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 \
4257 server1 \
4358 server2 \
4459 server3 \
Original file line number Diff line number Diff line change @@ -17,24 +17,21 @@ jobs:
1717 steps :
1818 - uses : actions/checkout@v4
1919
20- # 2) enable BuildKit
2120 - name : Set up Docker Buildx
2221 uses : docker/setup-buildx-action@v2
2322
24- # 3) build & cache the client image
2523 - name : Build & cache client image
2624 uses : docker/build-push-action@v3
2725 with :
2826 context : .
2927 file : Dockerfile
30- load : true # so the image is available locally
28+ load : true
3129 push : false
3230 cache-from : type=gha
3331 cache-to : type=gha,mode=max
3432 build-args : PHP_VERSION=${{ matrix.php }}
3533 tags : integration-client:${{ matrix.php }}
3634
37-
3835 - name : Populate .env
3936 run : |
4037 echo "PHP_VERSION=${{ matrix.php }}" > .env
Original file line number Diff line number Diff line change 2020 run : |
2121 echo "PHP_VERSION=${{ matrix.php }}" > .env
2222
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+
2338 - name : Cache PHP deps
2439 id : cache-php-deps
2540 uses : actions/cache@v4
4863 echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
4964
5065 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
5267
5368 tests-v5 :
5469 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments