Bump org.jetbrains.kotlinx.kover from 0.7.3 to 0.8.3 #48
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: Build and Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
checks: write | |
pull-requests: write | |
jobs: | |
build: | |
name: Build and run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Run tests | |
run: ./gradlew check | |
- name: Upload Test Report | |
uses: actions/upload-artifact@v4 | |
if: always() # always run even if the previous step fails | |
with: | |
name: junit-test-results | |
path: '**/build/test-results/*/TEST-*.xml' | |
retention-days: 1 | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: lib/build/reports/kover | |
retention-days: 1 | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: | | |
**/build/test-results/*/TEST-*.xml | |
- name: Add coverage report to PR | |
id: kover | |
uses: mi-kas/kover-report@v1 | |
with: | |
path: | | |
lib/build/reports/kover/report.xml | |
title: Code Coverage | |
update-comment: true |