Skip to content

Commit 1fd7e42

Browse files
authored
upgrade github action workflow to use latest (#562)
1 parent fa8ee76 commit 1fd7e42

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/main.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,21 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
java_version: ['8', '11', '14']
25+
java_version: ['8', '11', '17']
2626
os: ['ubuntu-20.04']
2727
env:
2828
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
3131
- name: Set up JDK
32-
uses: actions/setup-java@v2
32+
uses: actions/setup-java@v3
3333
with:
34-
distribution: "adopt"
34+
distribution: 'temurin'
3535
java-version: ${{ matrix.java_version }}
36+
cache : 'maven'
3637
server-id: sonatype-nexus-snapshots
3738
server-username: CI_DEPLOY_USERNAME
3839
server-password: CI_DEPLOY_PASSWORD
39-
- uses: actions/[email protected]
40-
with:
41-
path: ~/.m2/repository
42-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
43-
restore-keys: |
44-
${{ runner.os }}-maven-
4540
- name: Build
4641
run: ./mvnw -V -B -ff -ntp verify
4742
- name: Deploy snapshot

0 commit comments

Comments
 (0)