Skip to content

Commit 7d1ed0e

Browse files
authored
Update github action to use latest action versions (#323)
1 parent f0007c2 commit 7d1ed0e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,24 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
java_version: ['8', '11', '14']
27+
java_version: ['8', '11', '17']
2828
os: ['ubuntu-20.04']
2929
env:
3030
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
3333
- name: Set up JDK
34-
uses: actions/setup-java@v2
34+
uses: actions/setup-java@v3
3535
with:
36-
distribution: "adopt"
36+
distribution: 'temurin'
3737
java-version: ${{ matrix.java_version }}
38+
cache: 'maven'
3839
server-id: sonatype-nexus-snapshots
3940
server-username: CI_DEPLOY_USERNAME
4041
server-password: CI_DEPLOY_PASSWORD
4142
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
4243
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
4344
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
44-
- uses: actions/[email protected]
45-
with:
46-
path: ~/.m2/repository
47-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
48-
restore-keys: |
49-
${{ runner.os }}-maven-
5045
- name: Build
5146
run: ./mvnw -V -B -ff -ntp verify
5247
- name: Deploy snapshot

0 commit comments

Comments
 (0)