-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (43 loc) · 1.47 KB
/
R-CMD-check.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
on:
push:
pull_request:
schedule:
- cron: "0 0 2 * *"
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install libcurl4-openssl-dev
run: sudo apt install -qq libcurl4-openssl-dev
if: matrix.os == 'ubuntu-latest'
- name: Install libharfbuzz-dev libfribidi-dev
run: sudo apt install -qq libharfbuzz-dev libfribidi-dev
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_cran("pkgdown")
remotes::install_cran("devtools")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
remotes::install_cran("covr")
remotes::install_cran("lintr")
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- name: Make sure that no files are created in the .cache folder
run: testthat::expect_equal(0, length(list.files(rappdirs::user_cache_dir(appname = "beautier"))))
shell: Rscript {0}
- name: Test coverage
run: Rscript -e 'covr::codecov()'
- name: Lint
run: Rscript -e 'lintr::lint_package()'