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 19, 2021
1 parent de5a055 commit 82ab956
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 @@ -140,14 +140,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 @@ -63,3 +63,7 @@ fun isNonStable(version: String): Boolean {
val isStable = stableKeyword || regex.matches(version)
return isStable.not()
}

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 82ab956

Please sign in to comment.