Skip to content

Commit

Permalink
Update maven.yml - cache Maven repository between builds
Browse files Browse the repository at this point in the history
This should cut down on the time needed for CI runs.
  • Loading branch information
rombert committed Sep 22, 2023
1 parent 7304152 commit bc4d59a
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 @@ -27,6 +27,13 @@ jobs:
java-version: '11'
distribution: 'temurin'
cache: maven
- 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 verify --file pom.xml

0 comments on commit bc4d59a

Please sign in to comment.