Skip to content

Commit

Permalink
Enable caching on Maven local repository
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Jun 3, 2024
1 parent 4add0f2 commit 33c2ddb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
run: |
npm install google-java-format
npx google-java-format --set-exit-if-changed -i $(git ls-files src/test/\*.java)
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package --file pom.xml -Dmaven.test.skip
- name: Run integration tests with Maven
Expand Down

0 comments on commit 33c2ddb

Please sign in to comment.