Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup build workflow and build coverage reports #4

Merged
merged 14 commits into from
May 14, 2020

Conversation

ibara1454
Copy link
Owner

@ibara1454 ibara1454 commented May 14, 2020

Proposed Changes

  • Settings Github Actions workflow
  • Upload coverage reports
  • Add coverage badge to README.md
  • Configure library version
  • Suppress lint warnings

Details

Settings Github Actions workflow

Currently, we only set one job contains:

  • Test
  • Lint
  • Coverage
  • Build

For generating coverage report, we used jacoco-android-gradle-plugin to simply add the jacocoTestReport task. Which will generates reports under $module/build/reports/jacoco.

Upload coverage reports

We upload coverage reports to Codecov. Which will display the coverage report and will build a badge for coverage.

Add coverage badge to _README.md

As following, the beautiful badge:

codecov

Configure library version

kotlinx-coroutines-core: 1.5.6 -> 1.5.5

Downgrade the coroutine library to avoid lint warnings
Kotlin/kotlinx.coroutines#2004

Error: Invalid package reference in
org.jetbrains.kotlinx:kotlinx-coroutines-core; not included in Android:
java.lang.instrument. Referenced from
kotlinx.coroutines.debug.AgentPremain. [InvalidPackage]

Suppress lint warnings

Suppress the RequestsApi warnings

@codecov-io
Copy link

codecov-io commented May 14, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@77903e3). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #4   +/-   ##
=========================================
  Coverage          ?   54.57%           
=========================================
  Files             ?       26           
  Lines             ?      328           
  Branches          ?       37           
=========================================
  Hits              ?      179           
  Misses            ?      131           
  Partials          ?       18           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77903e3...16e6ece. Read the comment docs.

@ibara1454 ibara1454 changed the title chore: setup build workflow chore: setup build workflow and build coverage reports May 14, 2020
@ibara1454 ibara1454 merged commit dd971d7 into master May 14, 2020
@ibara1454 ibara1454 deleted the chore/github_actions branch May 14, 2020 19:04
@ibara1454 ibara1454 added the chore Changes to the build process or auxiliary tools label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes to the build process or auxiliary tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants