Skip to content

Commit 0ec74d9

Browse files
committed
Set up continuous integration
1 parent 299bf2e commit 0ec74d9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Cache Maven packages
14+
uses: actions/cache@v2
15+
with:
16+
path: ~/.m2
17+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
18+
restore-keys: ${{ runner.os }}-m2
19+
- name: Compile
20+
run: |
21+
mvn clean
22+
mvn compile
23+
- name: Compile the unit tests
24+
run: mvn test-compile
25+
- name: Run the unit tests
26+
run: mvn test
27+
- name: Package artifact
28+
run: mvn package
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
name: artifacts
32+
path: target

0 commit comments

Comments
 (0)