Skip to content

Commit 3d0340b

Browse files
committed
update maven.yaml
1 parent e3972e5 commit 3d0340b

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/maven.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,18 @@ jobs:
2525
strategy:
2626
matrix:
2727
os: [ ubuntu-latest,windows-latest, macOS-latest ]
28-
java: [ 8, 11, 16, 17-ea ]
28+
java: [ 8, 11, 17 ]
2929
fail-fast: false
3030

3131
runs-on: ${{ matrix.os }}
3232

3333
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v2
36-
37-
- name: Set up cache for ~./m2/repository
38-
uses: actions/cache@v2
39-
with:
40-
path: ~/.m2/repository
41-
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
42-
restore-keys: |
43-
maven-${{ matrix.os }}-java${{ matrix.java }}-
44-
maven-${{ matrix.os }}-
45-
46-
- name: Set up JDK
47-
uses: actions/setup-java@v2
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-java@v2
4836
with:
4937
distribution: adopt
5038
java-version: ${{ matrix.java }}
39+
cache: 'maven'
5140

5241
- name: Build with Maven
53-
run: mvn --batch-mode --errors --show-version verify
42+
run: mvn --batch-mode --errors --show-version verify site

0 commit comments

Comments
 (0)