Skip to content

Feature spinup

Feature spinup #241

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
# workflow derived from "check-standard" workflow
# rSOILWAT2 contains submodules: these need to be checkout separately
# rSOILWAT2 creates pdf vignette: these require a minimal latex setup
# rSOILWAT2 doesn't meet documentation standards (see issues #12 and #105):
# once these are resolved, reset to default `error-on: '"warning"'`
# frequent failures because suggested package "rSW2exter" cannot be installed
# (usually GDAL-related problems on GHA)
# -> remove `_R_CHECK_FORCE_SUGGESTS_: false` once issue #198 is resolved
on:
push:
branches: [main, release/**]
pull_request:
branches: [main, release/**]
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
R_KEEP_PKG_SOURCE: yes
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: r-lib/actions/setup-tinytex@v2
- run: tlmgr install makeindex
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- uses: r-lib/actions/check-r-package@v2
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
_R_CHECK_FORCE_SUGGESTS_: false
with:
upload-snapshots: true
error-on: '"error"'