Merge pull request #117 from opengeos/doc-update-23x #270
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
workflow_dispatch: | |
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: windows-latest, r: 'release'} | |
- {os: macOS-latest, r: 'release', exepath: '/Users/runner/Library/Application Support/org.R-project.R/R/whitebox/WBT/whitebox_tools'} | |
- {os: ubuntu-latest, r: 'devel', exepath: "/home/runner/.local/share/R/whitebox/WBT/whitebox_tools"} | |
- {os: ubuntu-latest, r: '3.6'} | |
env: | |
R_WHITEBOX_EXE_PATH: ${{ matrix.config.exepath }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install system dependencies (macOS) | |
if: runner.os == 'macOS' | |
run: | | |
brew install pkg-config | |
brew install gdal | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck, any::covr, any::remotes, local::. | |
needs: check | |
- name: Install WhiteboxTools | |
run: | | |
install.packages("whitebox") | |
library(whitebox) | |
install_whitebox() | |
shell: Rscript {0} | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true | |