generated from unlam-tec-movil/ScaffoldingV2
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.07 KB
/
test-coverage.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
name: Test coverage ✅
on:
pull_request:
jobs:
coverage:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Generate kover coverage report
run: ./gradlew koverXmlReportRelease
- name: Add coverage report to PR
id: kover
uses: mi-kas/kover-report@v1
with:
path: ${{ github.workspace }}/app/build/reports/kover/reportRelease.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage
update-comment: true
min-coverage-overall: 0
min-coverage-changed-files: 0
coverage-counter-type: LINE
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
files: app/build/reports/kover/reportRelease.xml