diff --git a/.github/workflows/release_assets.yml b/.github/workflows/release_assets.yml index bcee779..2530108 100644 --- a/.github/workflows/release_assets.yml +++ b/.github/workflows/release_assets.yml @@ -14,14 +14,7 @@ jobs: with: distribution: 'zulu' java-version: 17 - - - name: "restore cached maven repository" - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: 'maven' - name: "compile and package" run: mvn -B clean package diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 89aee7b..ae553ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,14 +17,7 @@ jobs: with: distribution: 'zulu' java-version: ${{ matrix.java }} - - - name: "restore cached maven repository" - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-jdk${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven-jdk${{ matrix.java }}- + cache: 'maven' - name: "build and test with Maven" run: mvn -B clean test