Skip to content

Commit ebbd0c5

Browse files
Add GitHub Actions build.yml to run Maven in CI
1 parent dd7ecfa commit ebbd0c5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
# See http://static.azul.com/zulu/bin/ for available JDK versions.
11+
java: [8, 11, 14, 15-ea, 16-ea]
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
name: Java ${{ matrix.java }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
- name: Set up java
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: ${{ matrix.java }}
22+
- name: Cache Maven packages
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.m2
26+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: ${{ runner.os }}-m2
28+
- name: Build with Maven
29+
run: mvn -B verify

0 commit comments

Comments
 (0)