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