Skip to content

Commit

Permalink
Set up Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ogolberg authored Mar 18, 2024
1 parent c7e31ec commit 232fb25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ jobs:
java-version: 17
- name: Build
run: ./gradlew check testCodeCoverageReport --stacktrace --no-daemon
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: open-toast/expediter
files: build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ tasks.withType<KotlinCompile> {
tasks {
test {
useJUnitPlatform()

extensions.configure<JacocoTaskExtension> {
includes = listOf("com.toasttab.expediter.*", "protokt.v1.toasttab.expediter.*")
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ shadow = "8.1.1"
# test
junit = "5.10.2"
strikt = "0.34.1"
testkit-plugin = "0.0.6"
testkit-plugin = "0.0.7"

[libraries]
# main
Expand Down

0 comments on commit 232fb25

Please sign in to comment.