diff --git a/.github/workflows/R-tests.yml b/.github/workflows/R-tests.yml new file mode 100644 index 0000000..5904a80 --- /dev/null +++ b/.github/workflows/R-tests.yml @@ -0,0 +1,25 @@ +on: + workflow_dispatch + +name: Tests + +jobs: + document: + name: run tests + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v3 + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::testthat + needs: pr-document + + - name: run test + run: testthat::test_dir("tests/testthat/") + shell: Rscript {0}