blob: d6394eb734c33bc7816ebde1d2a06703f8dbcbc7 [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 Kupietz16e66c32024-01-28 13:31:25 +01008 - 'gitlab-ci.yml'
9 - 'ci/**'
Marc Kupietz1ae886b2021-12-21 19:04:05 +010010 pull_request:
11 branches: [main, master]
Marc Kupietz39af4a62023-04-19 20:21:16 +020012 paths-ignore:
13 - '**.md'
Marc Kupietz1ae886b2021-12-21 19:04:05 +010014
15name: R-CMD-check
16
17jobs:
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 Kupietze222b532023-04-17 19:12:10 +020038 - uses: actions/checkout@v3
Marc Kupietz1ae886b2021-12-21 19:04:05 +010039
Marc Kupietz8da46912022-02-25 07:08:02 +010040 - uses: r-lib/actions/setup-pandoc@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010041
Marc Kupietz8da46912022-02-25 07:08:02 +010042 - uses: r-lib/actions/setup-r@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010043 with:
44 r-version: ${{ matrix.config.r }}
45 http-user-agent: ${{ matrix.config.http-user-agent }}
46 use-public-rspm: true
47
Marc Kupietz8da46912022-02-25 07:08:02 +010048 - uses: r-lib/actions/setup-r-dependencies@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010049 with:
Marc Kupietzba6b6912022-06-29 20:52:21 +020050 extra-packages: any::rcmdcheck, any::XML
Marc Kupietz8da46912022-02-25 07:08:02 +010051 needs: check
Marc Kupietz1ae886b2021-12-21 19:04:05 +010052
Marc Kupietz8da46912022-02-25 07:08:02 +010053 - uses: r-lib/actions/check-r-package@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010054 with:
Marc Kupietz8da46912022-02-25 07:08:02 +010055 upload-snapshots: true