Skip to content

Commit

Permalink
Make GitHub Actions cache Maven packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Aug 17, 2020
1 parent 6659dce commit 3c71e71
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 @@ -18,5 +18,11 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -Dfailonerror=false -B package

0 comments on commit 3c71e71

Please sign in to comment.