Skip to content

Commit 5607bc4

Browse files
committed
experiment with caching of docker images
1 parent 8a6926c commit 5607bc4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/integration-test-cluster-neo4j-5.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20+
- name: Restore Neo4j Image Cache if it exists
21+
id: cache-docker-neo4j
22+
uses: actions/cache@v4
23+
with:
24+
path: ci/cache/docker/neo4j
25+
key: cache-docker-neo4j-5-enterprise
26+
27+
- name: Update Neo4j Image Cache if cache miss
28+
if: steps.cache-docker-neo4j.outputs.cache-hit != 'true'
29+
run: |
30+
docker pull neo4j:5-enterprise
31+
mkdir -p ci/cache/docker/neo4j
32+
docker image save neo4j:5-enterprise --output ./ci/cache/docker/neo4j/neo4j-5-enterprise.tar
33+
34+
- name: Use Neo4j Image Cache if cache hit
35+
if: steps.cache-docker-neo4j.outputs.cache-hit == 'true'
36+
run: docker image load --input ./ci/cache/docker/neo4j/neo4j-5-enterprise.tar
37+
2038
- name: Set up Docker Buildx
2139
uses: docker/setup-buildx-action@v2
2240

.github/workflows/integration-test-single-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ jobs:
105105
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
106106
107107
docker compose run --rm \
108-
client /vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
108+
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
109109
110110
docker compose down --remove-orphans --volumes

0 commit comments

Comments
 (0)