Skip to content

Commit cd42f5e

Browse files
committed
Test Install multiple JDKs
1 parent af51d2f commit cd42f5e

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

.github/workflows/test-architecture.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Test architecture option
22

33
on:
4-
push:
5-
branches:
6-
- sapMachine
4+
# push:
5+
# branches:
6+
# - sapMachine
77

88
workflow_dispatch:
99

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test Install multiple JDKs
2+
3+
on:
4+
push:
5+
branches:
6+
- sapMachine
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Java
21+
uses: Shegox/setup-java@main
22+
with:
23+
distribution: 'sapmachine'
24+
java-version: |
25+
8
26+
11
27+
15
28+
29+
- name: Verify JDK 8
30+
run: java -version
31+
env:
32+
JAVA_HOME: ${{ env.JAVA_HOME_8_X64 }}
33+
34+
- name: Verify JDK 11
35+
run: java -version
36+
env:
37+
JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }}
38+
39+
- name: Verify JDK 15
40+
run: java -version
41+
env:
42+
JAVA_HOME: ${{ env.JAVA_HOME_15_X64 }}

0 commit comments

Comments
 (0)