-
Notifications
You must be signed in to change notification settings - Fork 17
34 lines (30 loc) · 871 Bytes
/
code-coverage.yml
File metadata and controls
34 lines (30 loc) · 871 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
# This workflow generate code coverage report and upload it to Codecov.
name: Coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- run: chmod +x ./gradlew
- name: Generate code coverage report with JaCoCo
run: ./gradlew jacocoTestReport
- name: Upload report to Codecov
uses: codecov/codecov-action@v2
with:
files: ./build/reports/jacoco/test/jacocoTestReport.xml
flags: unittests
name: codecov-algorithms
fail_ci_if_error: true # Let CI fail if upload failed
verbose: true