-
Notifications
You must be signed in to change notification settings - Fork 52
45 lines (33 loc) · 1.04 KB
/
build-PR.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
42
43
44
45
name: Build and Test (PR)
on:
pull_request:
branches: [master]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Maven Package
run: mvn clean install -Dmaven.test.skip=true
test-coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- run: ./environment/build.sh && mvn clean && sudo mvn -B verify -P coverage --no-transfer-progress
- name: jacoco-badge-generator
uses: cicirello/[email protected]
with:
generate-coverage-badge: true
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"