Skip to content

Commit f54abae

Browse files
committed
Travis -> GitHub Actions
1 parent d6f0d46 commit f54abae

File tree

2 files changed

+40
-12
lines changed

2 files changed

+40
-12
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build with Maven
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
strategy:
13+
matrix:
14+
platform: [ ubuntu-latest ]
15+
java-version: [ 1.8 ]
16+
17+
runs-on: ${{ matrix.platform }}
18+
env:
19+
PLATFORM: ${{ matrix.platform }}
20+
JAVA_VERSION: ${{ matrix.java-version }}
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up JDK
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: ${{ matrix.java-version }}
28+
- name: Cache local Maven repository
29+
uses: actions/cache@v2
30+
with:
31+
path: ~/.m2/repository
32+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: |
34+
${{ runner.os }}-maven-
35+
- name: Build with Maven
36+
run: mvn clean install --batch-mode --file pom.xml
37+
- name: Send data to Codecov
38+
uses: codecov/codecov-action@v1
39+
with:
40+
env_vars: PLATFORM, JAVA_VERSION

.travis.yml

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

0 commit comments

Comments
 (0)