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.
You can install the development version of ghacoveragebadge like so:
pak::pkg_install("pachadotdev/ghacoveragebadge")
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):