Skip to content

Commit b6d10c8

Browse files
Add CI workflow
1 parent 00caa34 commit b6d10c8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build & Test
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v2
10+
11+
- name: Set up JDK 1.8
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 8
15+
16+
- name: Cache Maven packages
17+
uses: actions/cache@v2
18+
with:
19+
path: ~/.m2
20+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
21+
restore-keys: ${{ runner.os }}-m2
22+
23+
- name: Build with Maven
24+
run: mvn -B package --file pom.xml
25+

0 commit comments

Comments
 (0)