Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Archive Kover report for debugging #567

Merged
merged 10 commits into from
Jun 14, 2022
6 changes: 6 additions & 0 deletions .github/workflows/gradle-jvm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
with:
files: "build/reports/kover/report.xml"

- name: Archive Kover report
uses: actions/upload-artifact@v3
with:
name: kover-report
path: build/reports/kover/report.xml

- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
Expand Down
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,21 @@ allprojects {
subprojects {
this.tasks.withType<Test> {
if (name != "jvmTest" && name != "jsTest") {
the<kotlinx.kover.api.KoverTaskExtension>().isDisabled = true
the<kotlinx.kover.api.KoverTaskExtension>().apply {
isDisabled = true
}
} else {
the<kotlinx.kover.api.KoverTaskExtension>().apply {
includes = listOf("com.wire.kalium.*")
}
}
}
}

kover {
coverageEngine.set(kotlinx.kover.api.CoverageEngine.JACOCO)
}

rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().nodeVersion = "17.6.0"
}
Expand Down
27 changes: 27 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Coverage configuration
#
# Validate this file using the following command in root project:
# curl -X POST --data-binary @codecov.yml https://codecov.io/validate
# ----------------------
coverage:
status:
project:
default:
# basic
target: auto
threshold: 5%
base: auto
patch: false

# Ignoring Paths
# --------------
# which folders/files to ignore
ignore:
- ".*/.*test/.*"

# Pull request comments:
# ----------------------
# Diff is the Coverage Diff of the pull request.
# Files are the files impacted by the pull request
comment:
layout: diff # accepted in any order: reach, diff, flags, and/or files