Skip to content

Commit

Permalink
Updates for Actions (CodeCov)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkennedy committed May 28, 2024
1 parent 10c17e5 commit 42afb57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
min-coverage-overall: 40
min-coverage-changed-files: 60

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
flags: smart-tests
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
#
Expand Down
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ tasks.test {
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
}
tasks.jacocoTestReport {
reports {
reports {
xml.required = true
}
}
dependsOn(tasks.test) // tests are required to run before generating the report
}

0 comments on commit 42afb57

Please sign in to comment.