diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..14baabf --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,23 @@ +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()" + \ No newline at end of file