-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.6 KB
/
r.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
45
46
47
48
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R-CMD-check-recmap
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
r-version: [4.3]
steps:
- uses: actions/checkout@v2
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.r-version }}
- name: Install Linux packages
run: sudo apt-get install -y libcurl4-openssl-dev libicu-dev pandoc pandoc-citeproc texlive texlive-latex-extra texlive-fonts-extra
shell: bash {0}
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "rmarkdown"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(build_args = "", args = "", error_on = "error", check_dir = "/tmp/recmap.Rcheck")
shell: Rscript {0}
- name: codecov
run: install.packages('covr'); covr::codecov(type = "all", token=Sys.getenv('CODECOV_TOKEN'))
shell: Rscript {0}
- uses: actions/upload-artifact@v2
with:
name: recmap.Rcheck
path: /tmp/recmap.Rcheck
if-no-files-found: warn