|
| 1 | +# This workflow uses actions that are not certified by GitHub. |
| 2 | +# They are provided by a third-party and are governed by |
| 3 | +# separate terms of service, privacy policy, and support |
| 4 | +# documentation. |
| 5 | +# |
| 6 | +# See https://github.com/r-lib/actions/tree/master/examples#readme for |
| 7 | +# additional example workflows available for the R community. |
| 8 | +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples |
| 9 | + |
| 10 | +name: R-CMD-check |
| 11 | + |
| 12 | +on: |
| 13 | + push: |
| 14 | + branches: [ main, master] |
| 15 | + pull_request: |
| 16 | + branches: [ main, master] |
| 17 | + |
| 18 | +permissions: |
| 19 | + contents: read |
| 20 | + |
| 21 | +jobs: |
| 22 | + R-CMD-check: |
| 23 | + runs-on: ${{ matrix.config.os }} |
| 24 | + |
| 25 | + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 26 | + |
| 27 | + strategy: |
| 28 | + fail-fast: false |
| 29 | + matrix: |
| 30 | + config: |
| 31 | + - {os: macos-latest, r: 'release'} |
| 32 | + - {os: windows-latest, r: 'release'} |
| 33 | + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} |
| 34 | + - {os: ubuntu-latest, r: 'release'} |
| 35 | + - {os: ubuntu-latest, r: 'oldrel-1'} |
| 36 | + |
| 37 | + env: |
| 38 | + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 39 | + R_KEEP_PKG_SOURCE: yes |
| 40 | + |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v4 |
| 43 | + - uses: r-lib/actions/setup-pandoc@v2 |
| 44 | + |
| 45 | + - uses: r-lib/actions/setup-r@v2 |
| 46 | + with: |
| 47 | + r-version: ${{ matrix.config.r }} |
| 48 | + http-user-agent: ${{ matrix.config.http-user-agent }} |
| 49 | + use-public-rspm: true |
| 50 | + |
| 51 | + - uses: r-lib/actions/setup-r-dependencies@v2 |
| 52 | + with: |
| 53 | + extra-packages: any::rcmdcheck |
| 54 | + |
| 55 | + - uses: r-lib/actions/check-r-package@v2 |
| 56 | + with: |
| 57 | + upload-snapshots: true |
0 commit comments