blob: b37a66dfe3c8b71ee272217fb592c1b3a97fe36a [file] [log] [blame]
Marc Kupietz1ae886b2021-12-21 19:04:05 +01001# 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
3on:
4 push:
5 branches: [main, master]
6 pull_request:
7 branches: [main, master]
8
9name: R-CMD-check
10
11jobs:
12 R-CMD-check:
13 runs-on: ${{ matrix.config.os }}
14
15 name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16
17 strategy:
18 fail-fast: false
19 matrix:
20 config:
21 - {os: macOS-latest, r: 'release'}
22 - {os: windows-latest, r: 'release'}
23 - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24 - {os: ubuntu-latest, r: 'release'}
25 - {os: ubuntu-latest, r: 'oldrel-1'}
26
27 env:
28 GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
29 R_KEEP_PKG_SOURCE: yes
30
31 steps:
32 - uses: actions/checkout@v2
33
Marc Kupietz8da46912022-02-25 07:08:02 +010034 - uses: r-lib/actions/setup-pandoc@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010035
Marc Kupietz8da46912022-02-25 07:08:02 +010036 - uses: r-lib/actions/setup-r@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010037 with:
38 r-version: ${{ matrix.config.r }}
39 http-user-agent: ${{ matrix.config.http-user-agent }}
40 use-public-rspm: true
41
Marc Kupietz8da46912022-02-25 07:08:02 +010042 - uses: r-lib/actions/setup-r-dependencies@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010043 with:
Marc Kupietzba6b6912022-06-29 20:52:21 +020044 extra-packages: any::rcmdcheck, any::XML
Marc Kupietz8da46912022-02-25 07:08:02 +010045 needs: check
Marc Kupietz1ae886b2021-12-21 19:04:05 +010046
Marc Kupietz8da46912022-02-25 07:08:02 +010047 - uses: r-lib/actions/check-r-package@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010048 with:
Marc Kupietz8da46912022-02-25 07:08:02 +010049 upload-snapshots: true