diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 919a151..93911cf 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -107,6 +107,21 @@ jobs: name: install-log path: | ${{ steps.build-install-check.outputs.install-log }} + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up R + uses: r-lib/actions/setup-r@v2 + + - name: Install dependencies + run: Rscript -e 'install.packages("testthat")' + + - name: Run tests and capture output + run: | + sink("tests/testthat/testthat.Rout") + testthat::test_dir("tests/testthat") + sink() - name: Show testthat output (windows) if: always() && runner.os == 'Windows' @@ -145,5 +160,7 @@ jobs: run: | R CMD INSTALL . Rscript -e "remotes::install_dev('pkgdown'); pkgdown::deploy_to_branch(new_process = FALSE)" + +