-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.3 KB
/
kover-report.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
41
42
43
44
45
46
47
48
49
50
51
name: Test and Build Kover Report
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
kover-report:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: 'gradle'
- name: Cache Kotlin/Native compiler
id: cache-konan
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan
- name: Test
run: ./gradlew allTests
- name: Build Kover Report
if: ${{ github.event_name == 'pull_request' }}
run: ./gradlew koverXmlReport
- name: Add coverage report to PR
if: ${{ github.event_name == 'pull_request' }}
id: kover
uses: mi-kas/kover-report@v1
with:
path: |
${{ github.workspace }}/mahjong-utils/build/reports/kover/report.xml
${{ github.workspace }}/mahjong-utils-entry/build/reports/kover/report.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage
update-comment: true
min-coverage-overall: 80
min-coverage-changed-files: 80
coverage-counter-type: LINE