|
| 1 | +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples |
| 2 | +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help |
| 3 | + |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: [main, master] |
| 7 | + pull_request: |
| 8 | + branches: [main, master] |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.head_ref }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +name: R-CMD-check |
| 15 | + |
| 16 | +jobs: |
| 17 | + R-CMD-check: |
| 18 | + runs-on: ${{ matrix.config.os }} |
| 19 | + |
| 20 | + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 21 | + |
| 22 | + strategy: |
| 23 | + fail-fast: false |
| 24 | + matrix: |
| 25 | + config: |
| 26 | + - {os: macOS-latest, r: 'release'} |
| 27 | + |
| 28 | + - {os: windows-latest, r: 'release'} |
| 29 | + # Use 3.6 to trigger usage of RTools35 |
| 30 | + - {os: windows-latest, r: '3.6'} |
| 31 | + |
| 32 | + # Use older ubuntu to maximise backward compatibility |
| 33 | + - {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'} |
| 34 | + - {os: ubuntu-18.04, r: 'release'} |
| 35 | + - {os: ubuntu-18.04, r: 'oldrel-1'} |
| 36 | + - {os: ubuntu-18.04, r: 'oldrel-2'} |
| 37 | + - {os: ubuntu-18.04, r: 'oldrel-3'} |
| 38 | + - {os: ubuntu-18.04, r: 'oldrel-4'} |
| 39 | + |
| 40 | + env: |
| 41 | + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 42 | + R_KEEP_PKG_SOURCE: yes |
| 43 | + |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v2 |
| 46 | + |
| 47 | + - uses: r-lib/actions/setup-pandoc@v2 |
| 48 | + |
| 49 | + - uses: r-lib/actions/setup-r@v2 |
| 50 | + with: |
| 51 | + r-version: ${{ matrix.config.r }} |
| 52 | + http-user-agent: ${{ matrix.config.http-user-agent }} |
| 53 | + use-public-rspm: true |
| 54 | + |
| 55 | + - uses: r-lib/actions/setup-r-dependencies@v2 |
| 56 | + with: |
| 57 | + extra-packages: any::rcmdcheck |
| 58 | + needs: check |
| 59 | + |
| 60 | + - uses: r-lib/actions/check-r-package@v2 |
0 commit comments