-
Notifications
You must be signed in to change notification settings - Fork 46
41 lines (38 loc) · 929 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: build
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: "0 6 * * *"
env:
# https://github.com/actions/virtual-environments/issues/1499#issuecomment-689467080
MAVEN_OPTS: >-
-Dhttp.keepAlive=false
-Dmaven.wagon.http.pool=false
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache
uses: actions/cache@v1
with:
path: ~/.m2
key: m2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Compile
run: ./mvnw clean test-compile -B
- name: Test
run: ./mvnw verify -P "${{ matrix.profile }}" -B
- name: Coverage
if: github.event_name != 'pull_request'
run: ./mvnw coveralls:report -B -D repoToken=${{ secrets.COVERALLS_TOKEN }}