Kotlin kover #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test coverage | |
on: | |
pull_request: | |
jobs: | |
collect_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- uses: stevenleadbeater/[email protected] | |
id: kover-tests | |
with: | |
coverage-threshold: 80 | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
proxy-url: https://add-pr-comment-proxy-94idvmwyie-uc.a.run.app | |
- name: Check coverage | |
if: ${{(steps.kover-tests.outputs.line-coverage) < 80}} | |
shell: bash | |
run: exit "Line coverage expected to be > 80 but was ${{steps.kover-tests.outputs.line-coverage}}" |