From 1e51f42341c25dad9f420bb7f817a52d329325c7 Mon Sep 17 00:00:00 2001 From: Jean Bisutti Date: Fri, 6 Mar 2026 10:55:23 +0100 Subject: [PATCH] Replace actions/cache with built-in cache parameter in setup-java --- .github/workflows/CI.yml | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 63119406..59bbd459 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,12 +19,7 @@ jobs: with: java-version: ${{ matrix.java }} distribution: temurin - - name: Cache Maven dependencies - uses: actions/cache@v4 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: maven - name: Build with Maven run: mvn verify @@ -44,12 +39,7 @@ jobs: with: java-version: ${{ matrix.java }} distribution: temurin - - name: Cache Maven dependencies - uses: actions/cache@v4 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: maven - name: Tests run: mvn verify @@ -69,12 +59,7 @@ jobs: with: java-version: ${{ matrix.java }} distribution: temurin - - name: Cache Maven dependencies - uses: actions/cache@v4 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: maven - name: Tests run: mvn verify @@ -94,12 +79,7 @@ jobs: with: java-version: ${{ matrix.java }} distribution: temurin - - name: Cache Maven dependencies - uses: actions/cache@v4 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: maven - name: Build run: mvn install -DskipTests - name: Tests