-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.36 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
on:
push:
branches:
- master
- version_0.5
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: macOS-13
env:
GITHUB_PAT: ${{ secrets.GH_PAT }}
steps:
- uses: actions/checkout@master
- uses: r-lib/actions/setup-r@v2
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies
run: |
options(pkgType = "binary")
options(install.packages.check.source = "no")
install.packages(c("remotes", "rcmdcheck", "covr", "pkgdown", "roxygen2"))
remotes::install_deps(dependencies = TRUE)
# dev version until 2.1.1 is replaced
remotes::install_github("r-lib/pkgdown")
shell: Rscript {0}
- name: Roxygenize
run: roxygen2::roxygenize()
shell: Rscript {0}
- uses: EndBug/add-and-commit@v9
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
shell: Rscript {0}
- name: Test coverage
run: covr::codecov(type="all")
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Pkgdown
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'