Skip to content

Commit 71c665a

Browse files
committed
updated github actions
1 parent 72e7940 commit 71c665a

File tree

2 files changed

+12
-24
lines changed

2 files changed

+12
-24
lines changed

.github/workflows/maven.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,15 @@ on: [push]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
java: [ '17' ]
11-
name: Java ${{ matrix.java }} build
8+
name: Java 17 test build
129
steps:
13-
- uses: actions/checkout@v2
14-
- name: Set up JDK ${{ matrix.java }}
15-
uses: actions/setup-java@v1
10+
- name: "Check out code"
11+
uses: actions/checkout@v3
12+
- name: "Set up JDK"
13+
uses: actions/setup-java@v3
1614
with:
17-
java-version: ${{ matrix.java }}
18-
- uses: actions/cache@v1
19-
with:
20-
path: ~/.m2/repository
21-
key: ${{ runner.os }}-maven-jdk${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
22-
restore-keys: |
23-
${{ runner.os }}-maven-jdk${{ matrix.java }}-
24-
- name: Build with Maven
15+
java-version: 17
16+
distribution: "zulu"
17+
cache: 'maven'
18+
- name: "Build with Maven"
2519
run: mvn -B clean install

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: "Check out code"
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
- name: "Set up JDK"
17-
uses: actions/setup-java@v2
17+
uses: actions/setup-java@v3
1818
with:
1919
java-version: 17
2020
distribution: "zulu"
21-
- name: "Cache"
22-
uses: actions/cache@v1
23-
with:
24-
path: ~/.m2/repository
25-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
26-
restore-keys: |
27-
${{ runner.os }}-maven-
21+
cache: 'maven'
2822
- name: "Compile and package"
2923
run: mvn -B clean deploy
3024
env:

0 commit comments

Comments
 (0)