From c432960b65afc33e70bfebf21792452d989571cb Mon Sep 17 00:00:00 2001 From: Zachary Kurtz Date: Fri, 18 Nov 2022 20:30:17 -0500 Subject: [PATCH] add github actions workflow --- .github/workflows/test_build.R | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test_build.R diff --git a/.github/workflows/test_build.R b/.github/workflows/test_build.R new file mode 100644 index 0000000..c43d31f --- /dev/null +++ b/.github/workflows/test_build.R @@ -0,0 +1,33 @@ +name: test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + r-version: ['3.6.3', '4.1.1'] + + steps: + - uses: actions/checkout@v3 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@v2 + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} \ No newline at end of file