From 86a3157e801309dea6ea64ac7fc2d23145e447d8 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Sun, 18 Aug 2024 02:30:46 +0200 Subject: [PATCH] ci: Fix codecov not reporting (#1216) --- .github/workflows/ci.yml | 10 ++++++---- build.gradle | 2 +- parse/build.gradle | 13 +++++++------ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed004d61c..7d0f3d541 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/build.gradle b/build.gradle index 7f0b633e7..04721faf7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ buildscript { ext.kotlin_version = "1.7.10" - ext.jacocoVersion = '0.8.7' + ext.jacocoVersion = '0.8.12' repositories { google() mavenCentral() diff --git a/parse/build.gradle b/parse/build.gradle index 32b8129c3..9253396d9 100644 --- a/parse/build.gradle +++ b/parse/build.gradle @@ -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