Skip to content

Commit dd2079a

Browse files
committed
add github ci workflow
1 parent b0cf8e8 commit dd2079a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test all JDKs on all OSes
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
java_version: [1.8, 9, 10, 11, 12, 13]
13+
os: [windows-latest, macOS-latest, ubuntu-latest]
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
- name: Set up JDK ${{ matrix.java_version }}
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: ${{ matrix.java_version }}
22+
- name: Make Maven Wrapper executable
23+
if: contains(matrix.os, 'win') == false
24+
run: chmod +x ./mvnw
25+
- name: Build with Maven
26+
run: ./mvnw package --file pom.xml --batch-mode
27+
env:
28+
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

0 commit comments

Comments
 (0)