Skip to content

Commit

Permalink
use build-in cache of 'actions/setup-java' for »Spring Boot« workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
agebhar1 committed Nov 30, 2024
1 parent cbdf94f commit 759f594
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/spring-boot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 759f594

Please sign in to comment.