Additional steps for setting up workflows for your R package

Some workflows in {ghactions4r} take additional setup steps besides running the use_* function. Here is a guide on the additional steps to be taken.

Setting up code coverage for your R package

  1. Clone your R package locally.
  2. In the local clone, run ghactions4r::use_calc_coverage() to generate the the github action file or any other files needed. Change the build triggers if desired.
  3. Commit the files and push them up to GitHub. See if a github action runs. If it does not, try pushing to your main branch to trigger a run, if your build triggers include a run on pushing to the main branch (the default).
  4. Set up an account on codecov. For codecov, create an account, then install the github app.
  5. Add an upload token as a secret to your GitHub repository. Name the secret CODECOV_TOKEN. Note that owner permissions are needed on GitHub to add the secret.
  6. Try re-running your Code Coverage GitHub Action by pushing a new commit and see if your results go to the Codecov website. Note that if your tool is in an organization that is already using Codecov, you may not need to make an account.
  7. Optionally, display a code coverage status badge on your repository or make a custom codecov.yml file, if desired.