Skip to content

Commit

Permalink
add jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
himadieievsv committed Jan 6, 2024
1 parent df46299 commit 9f7a492
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: All tests and codecov
name: Integration Tests

on:
push:
Expand Down Expand Up @@ -51,8 +51,5 @@ jobs:
./gradlew \
:redpulsar-core:test \
:redpulsar-jedis:test \
:redpulsar-lettuce:test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
:redpulsar-lettuce:test \
-DexcludeTags="unit"
6 changes: 5 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Test
name: Unit Tests

on:
push:
Expand All @@ -22,3 +22,7 @@ jobs:
:redpulsar-jedis:test \
:redpulsar-lettuce:test \
-DexcludeTags="integration"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ buildscript {

plugins {
kotlin("jvm") version "1.9.22"
id("org.jlleitschuh.gradle.ktlint") version "12.0.3"
`java-library`
id("org.jlleitschuh.gradle.ktlint") version "12.0.3"
jacoco
`maven-publish`
idea
}
Expand All @@ -27,6 +28,7 @@ subprojects {
apply(plugin = "idea")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "jacoco")

kotlin {
jvmToolchain(11)
Expand Down Expand Up @@ -113,4 +115,12 @@ subprojects {
}
}
}

tasks.withType<JacocoReport> {
reports {
xml.required.set(true)
csv.required.set(false)
html.required.set(false)
}
}
}

0 comments on commit 9f7a492

Please sign in to comment.