-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.5 KB
/
build-test-and-codecoverage.yml
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
name: Code coverage
on: [ pull_request ]
jobs:
build:
name: Code coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: Add code coverage to pull request (core)
uses: madrapps/[email protected]
with:
paths: >-
${{ github.workspace }}/core/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/authn/base/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/authn/saml/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/protocol/dss-ext11/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/audit/base/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/audit/actuator/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/signhandler/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/keycert/base/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/keycert/simple/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/keycert/cmc/target/site/jacoco/jacoco.xml,
${{ github.workspace }}/engine/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 60
min-coverage-changed-files: 60