Skip to content

Commit b687f9f

Browse files
authored
Merge pull request #1037 from yue9944882/chore/travis-jdk
Chore: Github action testing against multiple JDK versions
2 parents 8a5a67c + 10fb848 commit b687f9f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
name: Java ${{ matrix.java }} Maven Test
16+
strategy:
17+
matrix:
18+
# test against latest update of each major Java version, as well as specific updates of LTS versions:
19+
java: [ 8.0.x, 9.0.x, 10.0.x, 11.0.x, 12.0.x, 13.0.x ]
1520
steps:
1621
- uses: actions/checkout@v2
17-
- name: Set up JDK 1.8
22+
- name: Setup Java
1823
uses: actions/setup-java@v1
1924
with:
20-
java-version: 1.8
25+
java-version: ${{ matrix.java }}
2126
- name: Build with Maven
2227
run: mvn -q test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)