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 1/2] 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

From 14544601bcfcf027d6e476869d37bc842d9bdca0 Mon Sep 17 00:00:00 2001
From: Manuel <5673677+mtrezza@users.noreply.github.com>
Date: Sun, 15 Sep 2024 14:25:20 +0200
Subject: [PATCH 2/2] ci: Increase timeout for lint (#1219)

---
 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7d0f3d541..a2289f354 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,7 +11,7 @@ on:
 jobs:
   check-lint:
     name: Lint
-    timeout-minutes: 5
+    timeout-minutes: 10
     runs-on: ubuntu-latest
     steps:
       - name: Fetch Sources