Skip to content

Commit 8594a10

Browse files
authored
Update ci.yml
1 parent 9e1e0af commit 8594a10

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,17 @@ jobs:
1717
steps:
1818
- name: 'Check out repository'
1919
uses: actions/checkout@v2
20-
- name: 'Set up JDK'
20+
- name: 'Download JDK'
21+
id: download-jdk
22+
uses: sormuras/download-jdk@v1
23+
with:
24+
feature: ${{ matrix.java }}
25+
- name: 'Set up JDK, Project ${{ matrix.project }}'
2126
uses: actions/setup-java@v1
2227
with:
23-
java-version: ${{ matrix.java }}
28+
java-version: ${{ steps.download-jdk.outputs.version }}
29+
jdkFile: "${{ steps.download-jdk.outputs.file }}"
30+
- name: 'Print Java version'
31+
run: java -version
2432
- name: 'Build with Maven'
2533
run: mvn --batch-mode --no-transfer-progress verify

0 commit comments

Comments
 (0)