Skip to content

Commit

Permalink
Migrate from Coveralls to Codecov.io
Browse files Browse the repository at this point in the history
Coveralls has poor support for Kotlin source code.
Codecov does better job here.
  • Loading branch information
vgaidarji committed Mar 18, 2024
1 parent 03440ab commit d319e95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
run: |
echo '${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON }}' > $RUNNER_TEMP/credentials.json
export FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON=$RUNNER_TEMP/credentials.json && ./gradlew appDistributionUploadDebug
- name: Publish Code Coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: "./gradlew coveralls"
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: vgaidarji/ci-matters
androidTest:
runs-on: ubuntu-latest
strategy:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ Distribute the build using following command:

------

### Coveralls
### Codecov.io

[![Coverage Status](https://coveralls.io/repos/github/vgaidarji/ci-matters/badge.svg)](https://coveralls.io/github/vgaidarji/ci-matters)
[![codecov](https://codecov.io/gh/vgaidarji/ci-matters/graph/badge.svg?token=ubhWNTji7m)](https://codecov.io/gh/vgaidarji/ci-matters)

`Coveralls` provides test coverage information. `COVERALLS_REPO_TOKEN` environment variable should be exported on the build machine.
`Codecov.io` provides test coverage information. `CODECOV_TOKEN` environment variable should be exported on the build machine.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ apply plugin: 'com.google.firebase.appdistribution'
apply plugin: 'com.google.firebase.crashlytics'
apply from: 'config/quality.gradle'
apply from: 'config/jacoco.gradle'
apply from: 'config/coveralls.gradle'

def versionMajor = 1
def versionMinor = 0
Expand Down
6 changes: 0 additions & 6 deletions app/config/coveralls.gradle

This file was deleted.

0 comments on commit d319e95

Please sign in to comment.