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 | 16e66c3 | 2024-01-28 13:31:25 +0100 | [diff] [blame^] | 8 | - 'gitlab-ci.yml' |
| 9 | - 'ci/**' |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 10 | pull_request: |
| 11 | branches: [main, master] |
Marc Kupietz | 39af4a6 | 2023-04-19 20:21:16 +0200 | [diff] [blame] | 12 | paths-ignore: |
| 13 | - '**.md' |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 14 | |
| 15 | name: R-CMD-check |
| 16 | |
| 17 | jobs: |
| 18 | R-CMD-check: |
| 19 | runs-on: ${{ matrix.config.os }} |
| 20 | |
| 21 | name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 22 | |
| 23 | strategy: |
| 24 | fail-fast: false |
| 25 | matrix: |
| 26 | config: |
| 27 | - {os: macOS-latest, r: 'release'} |
| 28 | - {os: windows-latest, r: 'release'} |
| 29 | - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} |
| 30 | - {os: ubuntu-latest, r: 'release'} |
| 31 | - {os: ubuntu-latest, r: 'oldrel-1'} |
| 32 | |
| 33 | env: |
| 34 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 35 | R_KEEP_PKG_SOURCE: yes |
| 36 | |
| 37 | steps: |
Marc Kupietz | e222b53 | 2023-04-17 19:12:10 +0200 | [diff] [blame] | 38 | - uses: actions/checkout@v3 |
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-pandoc@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 41 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 42 | - uses: r-lib/actions/setup-r@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 43 | with: |
| 44 | r-version: ${{ matrix.config.r }} |
| 45 | http-user-agent: ${{ matrix.config.http-user-agent }} |
| 46 | use-public-rspm: true |
| 47 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 48 | - uses: r-lib/actions/setup-r-dependencies@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 49 | with: |
Marc Kupietz | ba6b691 | 2022-06-29 20:52:21 +0200 | [diff] [blame] | 50 | extra-packages: any::rcmdcheck, any::XML |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 51 | needs: check |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 52 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 53 | - uses: r-lib/actions/check-r-package@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 54 | with: |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 55 | upload-snapshots: true |