Skip to content

Commit 255f5c2

Browse files
committed
update setup-java@v4
1 parent e56b529 commit 255f5c2

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/main-jdk17-build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
name: main jdk17 build
1919

2020
on:
21+
pull_request:
22+
branches: [ main ]
2123
push:
2224
branches: [ main ]
2325

@@ -31,8 +33,9 @@ jobs:
3133
steps:
3234
- uses: actions/checkout@v4
3335
- name: Set up JDK ${{ matrix.java }}
34-
uses: actions/setup-java@v1
36+
uses: actions/setup-java@v4
3537
with:
38+
distribution: 'temurin'
3639
java-version: ${{ matrix.java }}
3740
- name: Build with Maven
3841
run: mvn clean test install javadoc:aggregate

.github/workflows/main-jdk21-build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v4
3333
- name: Set up JDK ${{ matrix.java }}
34-
uses: actions/setup-java@v1
34+
uses: actions/setup-java@v4
3535
with:
36+
distribution: 'temurin'
3637
java-version: ${{ matrix.java }}
3738
- name: Build with Maven
3839
run: mvn clean test install javadoc:aggregate

.github/workflows/main-jdk23-build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v4
3333
- name: Set up JDK ${{ matrix.java }}
34-
uses: actions/setup-java@v1
34+
uses: actions/setup-java@v4
3535
with:
36+
distribution: 'temurin'
3637
java-version: ${{ matrix.java }}
3738
- name: Build with Maven
3839
run: mvn clean test install javadoc:aggregate

0 commit comments

Comments
 (0)