@@ -45,10 +45,11 @@ jobs:
45
45
uses : actions/checkout@v4
46
46
47
47
- name : Set up JDK ${{ matrix.java-version }}
48
- uses : actions/setup-java@v4
48
+ uses : actions/setup-java@v5
49
49
with :
50
50
java-version : ${{ matrix.java-version }}
51
51
distribution : ' temurin'
52
+ cache : maven
52
53
53
54
- name : Compile source and tests
54
55
run : mvn -B compile test-compile -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true
@@ -68,10 +69,11 @@ jobs:
68
69
uses : actions/checkout@v4
69
70
70
71
- name : Set up JDK ${{ matrix.java-version }}
71
- uses : actions/setup-java@v4
72
+ uses : actions/setup-java@v5
72
73
with :
73
74
java-version : ${{ matrix.java-version }}
74
75
distribution : ' temurin'
76
+ cache : maven
75
77
76
78
- name : Full verify
77
79
run : mvn -B verify -DskipTests
@@ -86,10 +88,11 @@ jobs:
86
88
uses : actions/checkout@v4
87
89
88
90
- name : Set up JDK 8
89
- uses : actions/setup-java@v4
91
+ uses : actions/setup-java@v5
90
92
with :
91
93
java-version : ' 8'
92
94
distribution : ' temurin'
95
+ cache : maven
93
96
94
97
- name : Run unit tests
95
98
run : mvn -B test -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true
@@ -160,16 +163,36 @@ jobs:
160
163
uses : actions/checkout@v4
161
164
162
165
- name : Set up JDK 8
163
- uses : actions/setup-java@v4
166
+ uses : actions/setup-java@v5
164
167
with :
165
168
java-version : ' 8'
166
169
distribution : ' temurin'
170
+ cache : maven
167
171
168
172
- name : Setup Python 3
169
173
uses : actions/setup-python@v5
170
174
with :
171
175
python-version : ' 3.11'
172
176
177
+ - name : Setup CCM cache
178
+ uses : actions/cache@v4
179
+ with :
180
+ path : |
181
+ /home/runner/.ccm/repository
182
+ key : ccm-image-cassandra-${{ matrix.cassandra-version }}
183
+
184
+ - name : Resolve scylla-ccm master SHA
185
+ id : ccm
186
+ run : |
187
+ SHA="$(git ls-remote https://github.com/scylladb/scylla-ccm.git refs/heads/master | cut -f1)"
188
+ echo "sha=$SHA" >> "$GITHUB_OUTPUT"
189
+
190
+ - name : Cache scylla-ccm pip
191
+ uses : actions/cache@v4
192
+ with :
193
+ path : /home/runner/.cache/pip
194
+ key : scylla-ccm-pip-${{ steps.ccm.outputs.sha }}
195
+
173
196
- name : Setup environment
174
197
run : |
175
198
pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip
@@ -227,10 +250,30 @@ jobs:
227
250
uses : actions/checkout@v4
228
251
229
252
- name : Set up JDK 8
230
- uses : actions/setup-java@v4
253
+ uses : actions/setup-java@v5
231
254
with :
232
255
java-version : ' 8'
233
256
distribution : ' temurin'
257
+ cache : maven
258
+
259
+ - name : Setup CCM cache
260
+ uses : actions/cache@v4
261
+ with :
262
+ path : |
263
+ /home/runner/.ccm/scylla-repository
264
+ key : ccm-image-scylla-${{ matrix.scylla-version }}
265
+
266
+ - name : Resolve scylla-ccm master SHA
267
+ id : ccm
268
+ run : |
269
+ SHA="$(git ls-remote https://github.com/scylladb/scylla-ccm.git refs/heads/master | cut -f1)"
270
+ echo "sha=$SHA" >> "$GITHUB_OUTPUT"
271
+
272
+ - name : Cache scylla-ccm pip
273
+ uses : actions/cache@v4
274
+ with :
275
+ path : /home/runner/.cache/pip
276
+ key : scylla-ccm-pip-${{ steps.ccm.outputs.sha }}
234
277
235
278
- name : Setup Python 3
236
279
uses : actions/setup-python@v5
0 commit comments