Skip to content

Commit c4aa068

Browse files
committed
ZOOKEEPER-4944: Cache zookeeper dists in compatibility tests
1 parent 5b4be58 commit c4aa068

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/e2e.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,20 @@ jobs:
4848
run: mvn -B -V -e -ntp "-Dstyle.color=always" package -DskipTests
4949
env:
5050
MAVEN_OPTS: -Djansi.force=true
51-
- name: Download ZooKeeper ${{ matrix.zk }}
51+
- name: Cache ZooKeeper ${{ matrix.zk }}
52+
id: dist-cache
5253
if: matrix.zk != 'nightly'
54+
uses: actions/cache@v4
55+
with:
56+
key: apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
57+
path: apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
58+
- name: Download ZooKeeper ${{ matrix.zk }}
59+
if: matrix.zk != 'nightly' && steps.dist-cache.outputs.cache-hit != 'true'
5360
run: |
5461
curl -O https://archive.apache.org/dist/zookeeper/zookeeper-${{ matrix.zk }}/apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
55-
tar -xzvf apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
62+
- name: Extract ZooKeeper ${{ matrix.zk }}
63+
if: matrix.zk != 'nightly'
64+
run: tar -xzvf apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
5665
- name: Test ZooKeeper nightly server and ${{ matrix.zk }} client
5766
if: matrix.zk != 'nightly'
5867
run: tools/ci/test-connectivity.py --server . --client apache-zookeeper-${{ matrix.zk }}-bin

0 commit comments

Comments
 (0)