diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index a4e2a6e..a59a965 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -1,58 +1,22 @@ +## Thin caller -- the matrix, system dependencies, caching, Drive staging +## and the check itself all live in PredictiveEcology/actions. This file only +## says which package to check and what it needs on top of the org defaults. +## +## Pinned @main deliberately: tags freeze and rot (v0.1/v0.2 kept the +## ubuntugis PPA for months after the workflows rejected it). The actions repo +## gates merges with its own self-test CI. + +name: R-CMD-check + on: push: - branches: - - main - - master - - development - - LandWeb + branches: [main, master, development, LandWeb] pull_request: - branches: - - main - - master - - development - -name: R-CMD-check + branches: [main, master, development, LandWeb] 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: 'devel'} - - {os: windows-latest, r: 'release'} - - {os: windows-latest, r: 'oldrel'} - - {os: ubuntu-latest, r: 'devel'} - - {os: ubuntu-latest, r: 'release'} - - {os: ubuntu-latest, r: 'oldrel'} - - env: - R_REMOTES_NO_ERRORS_FROM_WARNINGS: true - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - - steps: - - uses: actions/checkout@v4 - - - uses: r-lib/actions/setup-pandoc@v2 - - - uses: r-lib/actions/setup-r@v2 - with: - Ncpus: 2 - r-version: ${{ matrix.config.r }} - use-public-rspm: false - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: | - any::rcmdcheck - any::Rcpp - needs: check - - - uses: r-lib/actions/check-r-package@v2 - with: - upload-snapshots: true + uses: PredictiveEcology/actions/.github/workflows/R-CMD-check.yaml@main + with: + extra-packages: | + any::Rcpp