Skip to content

Commit e3abe79

Browse files
committed
try different java versions
1 parent 492598c commit e3abe79

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/maven.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@ on:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
14-
13+
strategy:
14+
matrix:
15+
java:
16+
- '8'
17+
- '11'
18+
#- '17'
19+
name: Java ${{ matrix.Java }} sample
1520
steps:
1621
- uses: actions/checkout@v2
17-
- name: Set up JDK 8
22+
- name: Setup java
1823
uses: actions/setup-java@v2
1924
with:
20-
java-version: '8'
2125
distribution: 'temurin'
22-
cache: maven
26+
java-version: ${{ matrix.java }}
2327
- name: Build with Maven
2428
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)