Skip to content

Commit 88cb3ff

Browse files
committed
add GitHub Actions CI
1 parent ae656e8 commit 88cb3ff

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/cross-version.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Cross-Version
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
test_java:
8+
name: Java ${{ matrix.java }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
java: [14, 15, 16-ea]
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup Java
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: ${{ matrix.java }}
20+
- name: Cache Maven Repository
21+
uses: actions/cache@v2
22+
with:
23+
path: ~/.m2
24+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25+
restore-keys: ${{ runner.os }}-maven
26+
- name: Test
27+
run: ./mvnw -V --no-transfer-progress -e clean verify javadoc:javadoc

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
test_os:
8+
name: OS ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, macOS-latest, windows-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup Java
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 11
20+
- name: Cache Maven Repository
21+
uses: actions/cache@v2
22+
with:
23+
path: ~/.m2
24+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25+
restore-keys: ${{ runner.os }}-maven
26+
- name: Test
27+
run: ./mvnw -V --no-transfer-progress -e clean verify javadoc:javadoc

0 commit comments

Comments
 (0)