Skip to content

Commit 8e25eda

Browse files
committed
Use sdkman GH action for Java in PRs.
1 parent b7a7032 commit 8e25eda

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/pr.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ jobs:
88
uses: actions/checkout@v2
99
with:
1010
ref: ${{ github.event.pull_request.head.sha }}
11-
- name: Set up JDK 11.0.11
12-
uses: actions/setup-java@v1
11+
12+
- uses: sdkman/sdkman-action@master
13+
id: sdkman
1314
with:
14-
java-version: 11.0.11
15+
candidate: java
16+
version: 11.0.12-sem
17+
- uses: actions/setup-java@v1
18+
id: setup-java
19+
with:
20+
java-version: 11.0.12
21+
jdkFile: ${{ steps.sdkman.outputs.file }}
1522
- name: Run with Gradle
1623
run: ./gradlew clean test --info
1724
- uses: kentaro-m/[email protected]

0 commit comments

Comments
 (0)