Skip to content

Commit

Permalink
setup maven cache, fix #40
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski committed Sep 21, 2020
1 parent 199b85f commit 1b96d31
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,25 @@ jobs:
strategy:
matrix:
java: [ 8, 11 ]

name: Build and tests on JDK ${{ matrix.java }}

steps:
- uses: actions/checkout@v2
- name: Set up JDK
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Cache .m2
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: Build and verify
run: mvn clean verify

0 comments on commit 1b96d31

Please sign in to comment.