-
Notifications
You must be signed in to change notification settings - Fork 281
34 lines (34 loc) · 944 Bytes
/
java_coverage.yml
File metadata and controls
34 lines (34 loc) · 944 Bytes
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
name: Java Coverage
on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'java/**'
push:
branches:
- master
# mainly refer to: https://github.com/merkrafter/Merkompiler/blob/development/.github/workflows/quality_assurance.yml
jobs:
calculate-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: "adopt"
- name: Generate coverage report
run: mvn test --file ./java/pom.xml
- name: Test summary
uses: test-summary/action@v1
with:
paths: "**/TEST-*.xml"
if: always()
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
flags: java
fail_ci_if_error: true
token: e7eb01be-398b-4f7f-a73e-dc35c428cb50
verbose: true