New Git Action, build and unit tests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BiomaesteR Build Check and Tests | ||
on: | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
steps: | ||
- name: Build package | ||
run: Rscript -e "devtools::install()" | ||
- name: Check package | ||
run: Rscript -e "devtools::check(vignettes = FALSE)" | ||
- name: Run unit tests | ||
run: Rscript -e "devtools::test()" | ||