Skip to content

Commit

Permalink
[#185] Codecov reporting bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Nov 25, 2021
1 parent 66aec38 commit dd9b7ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,19 @@ jobs:
java-version: 11

- name: Run Kover
run: |
./gradlew koverCollectReports --parallel
run: ./gradlew koverCollectReports --parallel

- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: client/build/reports/kover/report.xml, common/build/reports/kover/report.xml, scopemob/build/reports/kover/report.xml, parsermob/build/reports/kover/report.xml
files: build/kover/client.xml,build/kover/common.xml,build/kover/scopemob.xml,build/kover/parsermob.xml

- name: Upload to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: build/kover/client.xml,build/kover/common.xml,build/kover/scopemob.xml,build/kover/parsermob.xml

- name: Set Job Status
id: status
Expand Down
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ tasks.withType<DependencyUpdatesTask> {
gradleReleaseChannel = "current"
rejectVersionIf { candidate.version.isNonStable() }
}

tasks.koverCollectReports {
into { "$buildDir/kover" }
}
3 changes: 0 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ coverage:
comment:
layout: "reach, header, diff, changes, uncovered, tree, flags, files"
behavior: default

ignore:
- "src/main/res/values*/*"

0 comments on commit dd9b7ea

Please sign in to comment.