Skip to content

Commit 2ffb917

Browse files
joaodinissfclaude
andcommitted
ci: add restore-keys to the maven-verify Maven cache
The lint and spotbugs jobs fall back to a restore-key prefix on a pom.xml change; maven-verify lacked it, so any pom change gave it a hard cache miss and a full ~/.m2 re-download. Add the same restore-keys for parity across all three Maven jobs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 49210e7 commit 2ffb917

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/verify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ jobs:
201201
with:
202202
path: /home/runner/.m2/repository
203203
key: ${{ runner.os }}-maven-0-${{ hashFiles('**/pom.xml') }}
204+
restore-keys: ${{ runner.os }}-maven-0-
204205
- name: Build with Maven within a virtual X Server Environment
205206
run: xvfb-run mvn clean verify -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
206207
- name: Fail on missing surefire reports

0 commit comments

Comments
 (0)