Skip to content

Commit

Permalink
codecov flags
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisChoupault committed Mar 4, 2025
1 parent 1f4cb58 commit 7b4c1d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: android-coverage
path: ./android/build/reports/jacocoTestReport.xml
path: ./example/build/eventide/jacoco/testDebugUnitTest.exec

upload-coverage:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -131,4 +131,4 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage/lcov.info,./build/reports/ios-coverage.xml,./android/build/reports/jacocoTestReport.xml
files: ./coverage/lcov.info,./build/reports/ios-coverage.xml,./example/build/eventide/jacoco/testDebugUnitTest.exec
8 changes: 5 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ tasks.register('jacocoTestReport', JacocoReport) {
reports {
xml.required = true
xml.outputLocation.set(file("$project.projectDir/build/reports/jacocoTestReport.xml"))
html.required = false
html.required = true
html.outputLocation.set(file("$project.projectDir/build/reports/html"))
csv.required = false
}

Expand All @@ -93,10 +94,11 @@ tasks.register('jacocoTestReport', JacocoReport) {
'**/Event*.class',
'**/Account*.class',
] // ignore pigeon generated files
def mainSrc = "${project.projectDir}/src/main/kotlin/sncf/connect/tech/eventide/"

def mainSrc = "${project.projectDir}/src/main/"

sourceDirectories.setFrom(files(mainSrc))
classDirectories.setFrom(files("${buildDir}/intermediates/runtime_library_classes_dir/debug/sncf/connect/tech/eventide/").asFileTree.matching {
classDirectories.setFrom(files("${buildDir}/intermediates/runtime_library_classes_dir/debug/").asFileTree.matching {
exclude fileFilter
})
executionData.setFrom(files("${buildDir}/jacoco/testDebugUnitTest.exec"))
Expand Down

0 comments on commit 7b4c1d8

Please sign in to comment.