Light, fluffy, and always free - The AWS Local Emulator alternative
fix(ci): replace setup-java's broken maven cache with actions/cache (#2503)
Priamo Germosena68bfc4e68d2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 6195c788a4..349f81285e 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -33,7 +33,18 @@ jobs:with:java-version: '25'distribution: 'temurin'- cache: maven++ # setup-java's built-in `cache: maven` never actually saves a cache on this action+ # version - every run restores nothing ("maven cache is not found") and then fails to+ # save with "Path Validation Error: Path(s) specified in the action for caching do(es)+ # not exist", so every run has been resolving all dependencies cold. Using actions/cache+ # directly instead, which is the same mechanism setup-java's option wraps.+ - uses: actions/[email protected]+ with:+ path: ~/.m2/repository+ key: maven-${{ runner.os }}-${{ hashFiles('pom.xml') }}+ restore-keys: |+ maven-${{ runner.os }}-- name: Run testsrun: mvn test -B