chore(deps): update plugin kover to v0.9.1 #563
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: Run tests | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v4.6.0 | |
with: | |
distribution: temurin | |
java-version: 18 | |
- name: Run unit tests | |
uses: gradle/gradle-build-action@v3.5.0 | |
with: | |
arguments: --no-configuration-cache check | |
- name: (Fail-only) Upload test report | |
if: "${{ failure() }}" | |
uses: actions/upload-artifact@v4.5.0 | |
with: | |
name: Test report | |
path: build/reports | |
check-coverage: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v4.6.0 | |
with: | |
distribution: temurin | |
java-version: 18 | |
- name: Run unit tests | |
uses: gradle/gradle-build-action@v3.5.0 | |
with: | |
arguments: --no-configuration-cache koverXmlReport | |
- name: Add coverage report to PR | |
id: kover | |
uses: mi-kas/kover-report@v1 | |
with: | |
path: ${{ github.workspace }}/build/reports/kover/report.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: Code Coverage | |
update-comment: true | |
min-coverage-overall: 80 | |
min-coverage-changed-files: 80 |