Skip to content

Commit

Permalink
ci: Fix codecov not reporting (parse-community#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Aug 18, 2024
1 parent a08c5d1 commit 86a3157
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Run tests
run: ./gradlew --no-daemon clean jacocoTestReport
- name: Report test coverage
run: |
pip install --user codecov
codecov
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
# Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext.kotlin_version = "1.7.10"
ext.jacocoVersion = '0.8.7'
ext.jacocoVersion = '0.8.12'
repositories {
google()
mavenCentral()
Expand Down
13 changes: 7 additions & 6 deletions parse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,22 @@ afterEvaluate {
apply plugin: "com.dicedmelon.gradle.jacoco-android"

jacoco {
toolVersion = "0.8.7"
toolVersion = "0.8.12"
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
testLogging {
events "failed"
events "SKIPPED", "FAILED"
showStandardStreams true
showExceptions true
showCauses true
showStackTraces true
exceptionFormat "full"
}
}

tasks.withType(Test) {
useJUnitPlatform()
}

jacocoAndroidUnitTestReport {
csv.enabled false
html.enabled true
Expand Down

0 comments on commit 86a3157

Please sign in to comment.