Skip to content

Commit b5facfc

Browse files
committed
Add GitHub workflow pipeline
1 parent 976cfde commit b5facfc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/maven.yml

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

0 commit comments

Comments
 (0)