Skip to content
Permalink
Browse files
Use GitHub Actions setup-java Maven cache property
  • Loading branch information
aherbert committed Jun 29, 2022
1 parent 6cf8c65 commit a1a597d5adddc9e8e71a9b7557a067aebd756871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
@@ -30,17 +30,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: mvn -V test jacoco:report --no-transfer-progress

@@ -30,17 +30,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven including examples
# Use the default goal
run: mvn -V --no-transfer-progress -P commons-geometry-examples

0 comments on commit a1a597d

Please sign in to comment.