Skip to content

Rhub-Checks

Rhub-Checks #11

Workflow file for this run

name: Rhub-Checks
on: workflow_dispatch
jobs:
Rhub-checks-job:
runs-on: windows-latest
name: ${{ matrix.config.cmd }}
strategy:
fail-fast: false
matrix:
config:
- {cmd: check_with_valgrind}
- {cmd: check_with_sanitizers}
- {cmd: check_on_solaris}
- {cmd: check_for_cran}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: R
uses: r-lib/actions/setup-r@v2
- name: Pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install Dependencies
run: |
install.packages(c('pkgbuild', 'knitr', 'rmarkdown', 'assertthat', 'testthat', 'rhub'))
shell: Rscript {0}
- name: Build Package and Run through Rhub
if: ( ${{ matrix.config.cmd }} == "check_on_solaris" ) == false
run: |
file_name <- pkgbuild::build("../triangle")
rhub::validate_email(email = "${{ secrets.RHUB_EMAIL }}", token = "${{ secrets.RHUB_EMAIL_TOKEN }}")
rhub::${{ matrix.config.cmd }}(path=file_name)
shell: Rscript {0}
- name: Build Package and Run through Rhub
if: ${{ matrix.config.cmd }} == "check_on_solaris"
run: |
file_name <- pkgbuild::build("../triangle")
rhub::validate_email(email = "${{ secrets.RHUB_EMAIL }}", token = "${{ secrets.RHUB_EMAIL_TOKEN }}")
rhub::${{ matrix.config.cmd }}(path=file_name, env_vars = c("_R_CHECK_FORCE_SUGGESTS_" = "false"))
shell: Rscript {0}