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 6, 2021
1 parent b6cbf22 commit ff956cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@ jobs:
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" }
}

0 comments on commit ff956cd

Please sign in to comment.