1- name : R-CMD-check
2-
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
33on :
44 push :
5- branches : [main, master]
5+ branches : [main, master, v2-branch ]
66 pull_request :
7- workflow_dispatch :
7+
8+ name : R-CMD-check.yaml
9+
10+ permissions : read-all
811
912jobs :
1013 R-CMD-check :
11- runs-on : ubuntu-latest
14+ runs-on : ${{ matrix.config.os }}
15+
16+ name : ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ config :
22+ - {os: macos-latest, r: 'release'}
23+ - {os: windows-latest, r: 'release'}
24+ - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+ - {os: ubuntu-latest, r: 'release'}
26+ - {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+ env :
29+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
30+ R_KEEP_PKG_SOURCE : yes
31+
1232 steps :
13- - uses : actions/checkout@v4
33+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
34+
35+ - uses : ./setup-pandoc
1436
15- - uses : r-lib/actions/ setup-r@v2
37+ - uses : ./ setup-r
1638 with :
39+ r-version : ${{ matrix.config.r }}
40+ http-user-agent : ${{ matrix.config.http-user-agent }}
1741 use-public-rspm : true
1842
19- - name : Install renv
20- run : Rscript -e 'install.packages("renv")'
21-
22- - name : Restore project environment from renv.lock
23- run : Rscript -e 'renv::restore()'
24-
25- - name : Build package
26- run : R CMD build .
43+ - uses : ./setup-r-dependencies
44+ with :
45+ extra-packages : any::rcmdcheck
46+ needs : check
2747
28- - name : Check package
29- run : R CMD check --no-manual --as-cran *.tar.gz
48+ - uses : ./check-r-package
49+ with :
50+ upload-snapshots : true
51+ build_args : ' c("--no-manual","--compact-vignettes=gs+qpdf")'
0 commit comments