Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 1 | # Workflow derived from https://github.com/r-lib/actions/tree/master/examples |
| 2 | # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main, master] |
Marc Kupietz | 39af4a6 | 2023-04-19 20:21:16 +0200 | [diff] [blame^] | 6 | paths-ignore: |
| 7 | - '**.md' |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 8 | pull_request: |
| 9 | branches: [main, master] |
Marc Kupietz | 39af4a6 | 2023-04-19 20:21:16 +0200 | [diff] [blame^] | 10 | paths-ignore: |
| 11 | - '**.md' |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 12 | |
| 13 | name: R-CMD-check |
| 14 | |
| 15 | jobs: |
| 16 | R-CMD-check: |
| 17 | runs-on: ${{ matrix.config.os }} |
| 18 | |
| 19 | name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 20 | |
| 21 | strategy: |
| 22 | fail-fast: false |
| 23 | matrix: |
| 24 | config: |
| 25 | - {os: macOS-latest, r: 'release'} |
| 26 | - {os: windows-latest, r: 'release'} |
| 27 | - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} |
| 28 | - {os: ubuntu-latest, r: 'release'} |
| 29 | - {os: ubuntu-latest, r: 'oldrel-1'} |
| 30 | |
| 31 | env: |
| 32 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 33 | R_KEEP_PKG_SOURCE: yes |
| 34 | |
| 35 | steps: |
Marc Kupietz | e222b53 | 2023-04-17 19:12:10 +0200 | [diff] [blame] | 36 | - uses: actions/checkout@v3 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 37 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 38 | - uses: r-lib/actions/setup-pandoc@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 39 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 40 | - uses: r-lib/actions/setup-r@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 41 | with: |
| 42 | r-version: ${{ matrix.config.r }} |
| 43 | http-user-agent: ${{ matrix.config.http-user-agent }} |
| 44 | use-public-rspm: true |
| 45 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 46 | - uses: r-lib/actions/setup-r-dependencies@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 47 | with: |
Marc Kupietz | ba6b691 | 2022-06-29 20:52:21 +0200 | [diff] [blame] | 48 | extra-packages: any::rcmdcheck, any::XML |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 49 | needs: check |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 50 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 51 | - uses: r-lib/actions/check-r-package@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 52 | with: |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 53 | upload-snapshots: true |