diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 9f64d6a..96c6f5d 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -1,68 +1,30 @@ +## 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 + branches: [main, master, development] pull_request: - branches: - - main - - master - - development - -name: R-CMD-check + branches: [main, master, development] jobs: R-CMD-check: - if: "!contains(github.event.commits[0].message, '[skip-ci]')" - runs-on: ${{ matrix.config.os }} - - name: ${{ matrix.config.os }} (${{ matrix.config.r }}, nosuggests ${{ matrix.config.nosuggests }}) - - strategy: - fail-fast: false - matrix: - config: - - {os: macOS-latest, nosuggests: false, r: 'release'} - - {os: windows-latest, nosuggests: false, r: 'devel'} - - {os: windows-latest, nosuggests: false, r: 'release'} - - {os: windows-latest, nosuggests: false, r: 'oldrel/1'} - - {os: windows-latest, nosuggests: false, r: 'oldrel/2'} - - {os: ubuntu-latest, nosuggests: false, r: 'devel'} - - {os: ubuntu-latest, nosuggests: false, r: 'release'} - - {os: ubuntu-latest, nosuggests: true, r: 'release'} - - {os: ubuntu-latest, nosuggests: false, r: 'oldrel/1'} - - {os: ubuntu-latest, nosuggests: false, r: 'oldrel/2'} - - env: - _R_CHECK_DEPENDS_ONLY_: ${{ matrix.config.nosuggests }} - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - R_REMOTES_NO_ERRORS_FROM_WARNINGS: true - - steps: - - uses: actions/checkout@v4 - - - uses: r-lib/actions/setup-pandoc@v2 - - - uses: PredictiveEcology/actions/install-spatial-deps@main - - - uses: r-lib/actions/setup-r@v2 - with: - extra-repositories: 'https://predictiveecology.r-universe.dev/' - r-version: ${{ matrix.config.r }} - Ncpus: 2 - use-public-rspm: false - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: | - any::rcmdcheck - PredictiveEcology/quickPlot@development - PredictiveEcology/reproducible@development - PredictiveEcology/Require@development - PredictiveEcology/SpaDES.core@development - PredictiveEcology/SpaDES.tools@development - - - 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: | + PredictiveEcology/quickPlot@development + PredictiveEcology/reproducible@development + PredictiveEcology/Require@development + PredictiveEcology/SpaDES.core@development + PredictiveEcology/SpaDES.tools@development + ## Legs beyond the org default 8. These still work and are + ## deliberate back-compat coverage, so they are preserved. + extra-config: | + [{"config": {"os": "ubuntu-latest", "nosuggests": false, "r": "oldrel-2"}}, {"config": {"os": "windows-latest", "nosuggests": false, "r": "oldrel-2"}}]