GitHub Actions

Mini-Lecture 21

Ben Baumer

Smith College

2024-11-26

Continuous Integration

GitHub Actions

  • Avoid “merge hell”
  • Trigger package checking automatically upon commit
  • Ensure package is always in working order

Setup

usethis::use_github_actions("check-release")
✓ Setting active project to '/home/bbaumer/Dropbox/git/baumer-lab/fec16'
✓ Creating '.github/'
✓ Adding '^\\.github$' to '.Rbuildignore'
✓ Adding '*.html' to '.github/.gitignore'
✓ Creating '.github/workflows/'
✓ Saving 'r-lib/actions/examples/check-release.yaml@v1' to '.github/workflows/R-CMD-check.yaml'
✓ Adding R-CMD-check badge to 'README.Rmd'
• Re-knit 'README.Rmd'

https://github.com/baumer-lab/fec16/blob/master/.github/workflows/R-CMD-check.yaml

Example: fec16

https://github.com/baumer-lab/fec16/blob/master/.github/workflows/R-CMD-check.yaml

What happens?

Now

Homework