Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wkennedy committed May 27, 2024
1 parent cbfc9d4 commit 67bbfa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Run Coverage
run: |
chmod +x gradlew
./gradlew testCoverage
./gradlew test
- name: Add coverage to PR
id: jacoco
Expand Down
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("java")
jacoco
}

group = "com.github.wkennedy"
Expand Down Expand Up @@ -29,4 +30,9 @@ dependencies {

tasks.test {
useJUnitPlatform()
}
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
}
tasks.jacocoTestReport {
dependsOn(tasks.test) // tests are required to run before generating the report
}

0 comments on commit 67bbfa7

Please sign in to comment.