From 759f5944d11a41134c102d396c2a65cab7118a84 Mon Sep 17 00:00:00 2001 From: Andreas Gebhardt Date: Sat, 30 Nov 2024 17:55:02 +0100 Subject: [PATCH] =?UTF-8?q?use=20build-in=20cache=20of=20'actions/setup-ja?= =?UTF-8?q?va'=20for=20=C2=BBSpring=20Boot=C2=AB=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/spring-boot.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/spring-boot.yml b/.github/workflows/spring-boot.yml index 83b3c1c..f27833c 100644 --- a/.github/workflows/spring-boot.yml +++ b/.github/workflows/spring-boot.yml @@ -27,12 +27,7 @@ jobs: with: distribution: ${{ matrix.javaDistribution }} java-version: ${{ matrix.javaVersion }} - - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: 'maven' - run: mvn test --no-transfer-progress --file spring-boot/pom.xml -DargLine="-Dspring.datasource.url=jdbc:tc:postgresql:${{ matrix.pgDockerTag }}:///" diKTat: @@ -43,10 +38,5 @@ jobs: with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: 'maven' - run: mvn diktat:check --no-transfer-progress --file spring-boot/pom.xml