diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml new file mode 100644 index 0000000..0814d91 --- /dev/null +++ b/.github/workflows/r.yml @@ -0,0 +1,41 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: R + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up R ${{ matrix.config.os }} + uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages("devtools") + devtools::load_all() + devtools::install() + shell: Rscript {0} + - name: Check + working-directory: ${{github.workspace}} + run: | + rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + source("tests/test_mean_print.R") + shell: Rscript {0}