From df49a0bfd0ba0f80abd76c800597da3dc6f14251 Mon Sep 17 00:00:00 2001 From: Madhur Gupta Date: Thu, 14 Oct 2021 10:11:35 +0530 Subject: [PATCH 1/2] Update codecov uploader and fix di folder for jacoco --- .github/workflows/android.yml | 2 +- jacoco.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index b95d63910d..090aec6be6 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -15,4 +15,4 @@ jobs: - name: Build with Gradle run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage - name: Upload Test Report - run: bash <(curl -s https://codecov.io/bash) -f "app/build/reports/jacoco/testBetaDebugUnitTestCoverage/testBetaDebugUnitTestCoverage.xml" \ No newline at end of file + run: bash <(curl -Os https://uploader.codecov.io/latest/linux/codecov) -f "app/build/reports/jacoco/testBetaDebugUnitTestCoverage/testBetaDebugUnitTestCoverage.xml" \ No newline at end of file diff --git a/jacoco.gradle b/jacoco.gradle index c9a08a11e4..397f71aa4f 100644 --- a/jacoco.gradle +++ b/jacoco.gradle @@ -53,7 +53,7 @@ project.afterEvaluate { '**/Dagger*Component.class', '**/Dagger*Component$Builder.class', '**/*Module_*Factory.class', - '**/di/module/*', + '**/di/*', '**/*_Factory*.*', '**/*Module*.*', '**/*Dagger*.*', From 7a1248242977390023e66ad0edcae0c4262d66b7 Mon Sep 17 00:00:00 2001 From: Madhur Gupta Date: Thu, 14 Oct 2021 10:26:12 +0530 Subject: [PATCH 2/2] Fix codecov uploader --- .github/workflows/android.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 090aec6be6..ce1f2472d3 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -15,4 +15,7 @@ jobs: - name: Build with Gradle run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage - name: Upload Test Report - run: bash <(curl -Os https://uploader.codecov.io/latest/linux/codecov) -f "app/build/reports/jacoco/testBetaDebugUnitTestCoverage/testBetaDebugUnitTestCoverage.xml" \ No newline at end of file + run: | + curl -Os https://uploader.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -f "app/build/reports/jacoco/testBetaDebugUnitTestCoverage/testBetaDebugUnitTestCoverage.xml" -Z \ No newline at end of file