Skip to content

Commit

Permalink
Set actions/setup-java to use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek committed Dec 18, 2024
1 parent ecb71e3 commit a995339
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,11 @@ jobs:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- name: Cache Maven Packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Build with Maven
run: mvn -B --no-transfer-progress package --file pom.xml -Dsurefire.skipAfterFailureCount=1

0 comments on commit a995339

Please sign in to comment.