blob: 4d954905ebc82b59f3607568cde07a328c9ae3c8 [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]
Marc Kupietz39af4a62023-04-19 20:21:16 +02006 paths-ignore:
7 - '**.md'
Marc Kupietz1ae886b2021-12-21 19:04:05 +01008 pull_request:
9 branches: [main, master]
Marc Kupietz39af4a62023-04-19 20:21:16 +020010 paths-ignore:
11 - '**.md'
Marc Kupietz1ae886b2021-12-21 19:04:05 +010012
13name: R-CMD-check
14
15jobs:
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 Kupietze222b532023-04-17 19:12:10 +020036 - uses: actions/checkout@v3
Marc Kupietz1ae886b2021-12-21 19:04:05 +010037
Marc Kupietz8da46912022-02-25 07:08:02 +010038 - uses: r-lib/actions/setup-pandoc@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010039
Marc Kupietz8da46912022-02-25 07:08:02 +010040 - uses: r-lib/actions/setup-r@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010041 with:
42 r-version: ${{ matrix.config.r }}
43 http-user-agent: ${{ matrix.config.http-user-agent }}
44 use-public-rspm: true
45
Marc Kupietz8da46912022-02-25 07:08:02 +010046 - uses: r-lib/actions/setup-r-dependencies@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010047 with:
Marc Kupietzba6b6912022-06-29 20:52:21 +020048 extra-packages: any::rcmdcheck, any::XML
Marc Kupietz8da46912022-02-25 07:08:02 +010049 needs: check
Marc Kupietz1ae886b2021-12-21 19:04:05 +010050
Marc Kupietz8da46912022-02-25 07:08:02 +010051 - uses: r-lib/actions/check-r-package@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010052 with:
Marc Kupietz8da46912022-02-25 07:08:02 +010053 upload-snapshots: true