Skip to content

Commit 81cffc1

Browse files
committed
set up github actions
1 parent d5caa19 commit 81cffc1

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

.github/workflows/maven.yml

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

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)