Skip to content

Commit 759a2ba

Browse files
committed
changed action to matrix build project using java 8 and 11
1 parent 270754f commit 759a2ba

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
15+
strategy:
16+
matrix:
17+
java: [8, 11]
18+
name: Java ${{ matrix.java }} building ...
1719
steps:
1820
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
21+
- name: Set up Java ${{ matrix.java }}
2022
uses: actions/setup-java@v1
2123
with:
22-
java-version: 1.8
24+
java-version: ${{ matrix.java }}
2325
- name: Build with Maven
24-
run: mvn -B package --file pom.xml
26+
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)