Skip to content

fix testing problem #1663

fix testing problem

fix testing problem #1663

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
paths:
- 'examples/**'
- 'lib/**'
- 'starters/**'
- 'gradle/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'
- 'buildSrc/**'
pull_request:
branches: [ main ]
paths:
- 'examples/**'
- 'lib/**'
- 'starters/**'
- 'gradle/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'
- 'buildSrc/**'
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
docker:
image: docker:dind
options: --privileged
steps:
- name: Configure JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: current
- name: Gradle Build and Test
run: gradle --build-cache --configuration-cache build test koverXmlReport
- name: Add coverage report to PR
id: kover
uses: mi-kas/kover-report@v1
with:
path: |
${{ github.workspace }}/build/reports/kover/report.xml
title: Code Coverage
update-comment: true
min-coverage-overall: 80
min-coverage-changed-files: 80
coverage-counter-type: LINE
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}