Skip to content

pachadotdev/ghacoveragebadge

Repository files navigation

ghacoveragebadge

Lifecycle: stable R-CMD-check CRAN status Test coverage BuyMeACoffee

The goal of ghacoveragebadge is to provide a GitHub Actions workflow that generates a badge for your R package to report the test coverage without needing to set up a separate service like Codecov or Coveralls.

Installation

You can install the development version of ghacoveragebadge like so:

pak::pkg_install("pachadotdev/ghacoveragebadge")

Example

On your R package main directory, run:

library(ghacoveragebadge)
use_github_actions_coverage()

Using this function will create a GitHub Actions workflow file in .github/workflows/coverage.yaml. The result will be a badge that looks like this (same as the one at the top of this README):

Test coverage

About

Add a coverage percentage badge to R packages using GitHub Actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages