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 {