Run coverage tests, parse the results for use in CI / CD
name: Test coverage
on:
push:
branches:
- 'main'
tags-ignore:
- '**'
jobs:
collect_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
shell: bash
run: chmod +x gradlew
- name: Get coverage
shell: bash
run: ./gradlew koverReport
- name: Parse coverage
id: parse_coverage
uses: stevenleadbeater/kover-report-parser-action@0.0.1
Lines covered from report file
Lines missed from report file
Instructions covered from report file
Instructions missed from report file
Branches covered from report file
Branches missed from report file
Methods covered from report file
Methods missed from report file
Classes covered from report file
Classes missed from report file
The action and documentation in this project are released under the MIT License.