Skip to content

Commit 35f5423

Browse files
committed
[build] Upgrade github action
1 parent 01a5f92 commit 35f5423

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/maven.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,40 @@ env:
2424
jobs:
2525
build:
2626
name: Main Build
27-
runs-on: ubuntu-20.04
27+
runs-on: ubuntu-22.04
2828
steps:
2929
- name: Clone
30-
uses: actions/checkout@v1
30+
uses: actions/checkout@v4
3131
- name: Cache Maven Repository
32-
uses: actions/cache@v1
32+
uses: actions/cache@v4
3333
with:
3434
path: /home/runner/work/yupiik-logging/yupiik-logging/.m2
3535
key: m2_repository
3636
- name: Set up JDK
37-
uses: actions/setup-java@v1
37+
uses: actions/setup-java@v4
3838
with:
39-
java-version: '11.0.9'
39+
distribution: 'zulu'
40+
java-version: '21'
4041
- name: Build
4142
run: mvn install
4243
- name: Remove Snapshots Before Caching
4344
run: find /home/runner/work/yupiik-logging/yupiik-logging/.m2 -name '*SNAPSHOT' | xargs rm -Rf
4445
security_audit:
4546
name: Security Audit
46-
runs-on: ubuntu-20.04
47+
runs-on: ubuntu-22.04
4748
steps:
4849
- name: Clone
49-
uses: actions/checkout@v1
50+
uses: actions/checkout@v4
5051
- name: Cache Maven Repository
51-
uses: actions/cache@v1
52+
uses: actions/cache@v4
5253
with:
5354
path: /home/runner/work/yupiik-logging/yupiik-logging/.m2
5455
key: m2_repository
5556
- name: Set up JDK
56-
uses: actions/setup-java@v1
57+
uses: actions/setup-java@v4
5758
with:
58-
java-version: '11.0.9'
59+
distribution: 'zulu'
60+
java-version: '21'
5961
- name: Build
6062
run: mvn install -DskipTests -Dexec.skip=true ossindex:audit
6163
- name: Remove Snapshots Before Caching

0 commit comments

Comments
 (0)