Skip to content

Commit ec0f927

Browse files
committed
Added matrix
1 parent be8866a commit ec0f927

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ on:
1616

1717
jobs:
1818
build:
19-
20-
runs-on: ubuntu-20.04
21-
19+
name: Maven test on ${{ matrix.Java }}
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
java: [ '17', '18', '19', '20']
2224
steps:
2325
- uses: actions/checkout@v3
2426
- name: Set up JDK 20
2527
uses: actions/setup-java@v3
2628
with:
27-
java-version: '20'
29+
java-version: ${{ matrix.java }}
2830
distribution: 'adopt'
2931
cache: maven
3032
- name: Build with Maven

0 commit comments

Comments
 (0)