1
- # For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2
- # https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
1
+ # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2
+ # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
+ #
4
+ # NOTE: This workflow is overkill for most R packages and
5
+ # check-standard.yaml is likely a better choice.
6
+ # usethis::use_github_action("check-standard") will install it.
3
7
on :
4
8
push :
5
9
branches : [main, master]
@@ -23,28 +27,42 @@ name: R-CMD-check
23
27
jobs :
24
28
R-CMD-check :
25
29
runs-on : ${{ matrix.config.os }}
26
- name : ${{ matrix.config.os }} (${{ matrix.config.r }}) [Pandoc ${{ matrix.config.pandoc }}]
30
+
31
+ name : ${{ matrix.config.os }} (${{ matrix.config.r }})
27
32
28
33
strategy :
29
34
fail-fast : false
30
35
matrix :
31
36
config :
32
- - {os: windows-latest, pandoc: '2.16.1', r: 'release'} # IDE daily
33
- - {os: windows-latest, pandoc: '2.14.0.3', r: 'release'} # IDE release
34
- - {os: macOS-latest, pandoc: '2.16.1', r: 'release'} # IDE daily
35
- - {os: macOS-latest, pandoc: '2.14.0.3', r: 'release'} # IDE release
37
+ # testing R release with last shipped pandoc version in RStudio IDE and new pandoc
38
+ - {os: windows-latest, pandoc: '3.1.1', r: 'release'}
39
+ - {os: macOS-latest, pandoc: '3.1.1', r: 'release'}
36
40
- {os: ubuntu-latest, pandoc: 'devel', r: 'release'}
37
- - {os: ubuntu-latest, pandoc: '2.16.1', r: 'release'}
38
- - {os: ubuntu-latest, pandoc: '2.14.2', r: 'release'}
39
- - {os: ubuntu-latest, pandoc: '2.11.4', r: 'release'}
40
- - {os: ubuntu-latest, pandoc: '2.16.1', r: 'devel', http-user-agent: 'release'}
41
+ # testing older pandoc versions
42
+ - {os: ubuntu-latest, pandoc: '2.19.2', r: 'release'}
43
+ - {os: ubuntu-latest, pandoc: '2.18', r: 'release'}
44
+ - {os: ubuntu-latest, pandoc: '2.17.1.1', r: 'release'}
45
+ - {os: ubuntu-latest, pandoc: '2.16.2', r: 'release'}
46
+ # testing other R versions
47
+ - {os: ubuntu-latest, pandoc: '2.16.2', r: 'devel', http-user-agent: 'release'}
48
+ - {os: ubuntu-latest, pandoc: '2.16.2', r: 'oldrel-1'}
49
+ - {os: ubuntu-latest, pandoc: '2.16.2', r: 'oldrel-2'}
50
+ - {os: ubuntu-latest, pandoc: '2.16.2', r: 'oldrel-3'}
41
51
42
52
env :
43
53
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
44
54
R_KEEP_PKG_SOURCE : yes
45
55
46
56
steps :
47
- - uses : actions/checkout@v2
57
+ - uses : actions/checkout@v3
58
+
59
+ - uses : r-lib/actions/setup-pandoc@v2
60
+ if : matrix.config.pandoc != 'devel'
61
+ with :
62
+ pandoc-version : ${{ matrix.config.pandoc }}
63
+
64
+ - uses : cderv/actions/setup-pandoc-nightly@nightly-pandoc
65
+ if : matrix.config.pandoc == 'devel'
48
66
49
67
- uses : r-lib/actions/setup-r@v2
50
68
with :
57
75
run : echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
58
76
shell : bash
59
77
60
- - uses : r-lib/actions/setup-pandoc@v2
61
- if : matrix.config.pandoc != 'devel'
62
- with :
63
- pandoc-version : ${{ matrix.config.pandoc }}
64
-
65
- - uses : cderv/actions/setup-pandoc-nightly@nightly-pandoc
66
- if : matrix.config.pandoc == 'devel'
67
-
68
78
- uses : r-lib/actions/setup-tinytex@v2
69
79
env :
70
80
# install full prebuilt version
0 commit comments