Skip to contents

This function creates a configuration file (.yaml) to setup GitHub Actions to report code coverage when testing the package. This workflow is derived from https://github.com/r-lib/actions/tree/v2-branch/examples. This file will be written as .github/workflows/test-coverage.yaml.

Usage

add_github_actions_codecov(open = FALSE, overwrite = FALSE, quiet = FALSE)

Arguments

open

A logical value. If TRUE (default) the file is opened in the editor.

overwrite

A logical value. If this file is already present and overwrite = TRUE, it will be erased and replaced. Default is FALSE.

quiet

A logical value. If TRUE messages are deleted. Default is FALSE.

Value

No return value.

Examples

if (FALSE) { # \dontrun{
add_github_actions_codecov()
} # }