Skip to content

Commit 96aee9e

Browse files
author
Caesar Ralf
committed
Fix build to use workflows
1 parent 3a56c6f commit 96aee9e

File tree

2 files changed

+39
-14
lines changed

2 files changed

+39
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
name: Build/Test
14+
15+
runs-on: ubuntu-latest
16+
17+
# Test on each supported Java LTS version
18+
strategy:
19+
matrix:
20+
java_version: [8, 11, 17]
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 2
25+
- name: Set up JDK ${{ matrix.java_version }}
26+
uses: actions/setup-java@v2
27+
with:
28+
distribution: 'zulu'
29+
java-version: ${{ matrix.java_version }}
30+
- name: Cache Maven packages
31+
uses: actions/cache@v2
32+
with:
33+
path: ~/.m2
34+
key: ${{ runner.os }}-java-${{ matrix.java_version }}-m2-${{ hashFiles('**/pom.xml') }}
35+
restore-keys: ${{ runner.os }}-java-${{ matrix.java_version }}-m2
36+
- name: Build with Maven
37+
run: mvn --batch-mode --update-snapshots verify
38+
- name: Codecov
39+
uses: codecov/codecov-action@v1

.travis.yml

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

0 commit comments

Comments
 (0)