Skip to content

Commit

Permalink
Add CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
alexymumo committed Mar 24, 2024
1 parent d9ad32a commit 8564b6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ android {
"proguard-rules.pro"
)
}
debug {
enableAndroidTestCoverage = true
enableUnitTestCoverage = true
}
}

compileOptions {
Expand Down

0 comments on commit 8564b6d

Please sign in to comment.