From 8564b6dff9c2386f08d36d5b4f52651ff60cd7ad Mon Sep 17 00:00:00 2001 From: Alex Mumo Date: Sun, 24 Mar 2024 18:22:01 +0300 Subject: [PATCH] Add CodeCov --- .github/workflows/android_build.yml | 6 ++++++ app/build.gradle.kts | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/android_build.yml b/.github/workflows/android_build.yml index 81ebcd3..f20c3ae 100644 --- a/.github/workflows/android_build.yml +++ b/.github/workflows/android_build.yml @@ -34,6 +34,12 @@ jobs: - name: Build with Gradle run: ./gradlew build + - name: Upload coverage report to CodeCov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: alexymumo/News-App + - name: Upload a build artifact uses: actions/upload-artifact@v3.1.3 with: diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bb2a46b..730e6c4 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -45,6 +45,10 @@ android { "proguard-rules.pro" ) } + debug { + enableAndroidTestCoverage = true + enableUnitTestCoverage = true + } } compileOptions {