-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (52 loc) · 1.8 KB
/
r.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
name: R-CMD-check-prolfqua
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
R_LIBS_SITE: '/home/runner/work/_temp/Library/'
on:
push:
branches: [ Modelling2R6 ]
pull_request:
branches: [ Modelling2R6 ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
r-version: [4.4.0]
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 unzip curl libcurl4-openssl-dev libicu-dev pandoc wget unzip texlive texlive-latex-extra texlive-fonts-extra texlive-xetex pandoc-citeproc lmodern
- name: install remotes
run: install.packages(c("remotes","rcmdcheck","covr","ggpubr"))
shell: Rscript {0}
- name: install local prolfqua
run: remotes::install_local('.', dependencies = TRUE)
shell: Rscript {0}
- name: rcmdcheck::rcmdcheck
run: rcmdcheck::rcmdcheck(error_on = "never", check_dir = "check")
shell: Rscript {0}
- name: codecov
run: covr::codecov(type = "all", token=Sys.getenv('CODECOV_TOKEN'))
shell: Rscript {0}
- name: List files in home directory
run: find $R_LIBS_SITE -type f > files.txt
- uses: actions/upload-artifact@v3
with:
name: files
path: files.txt
if-no-files-found: warn
- uses: actions/upload-artifact@v3
with:
name: prolfqua CI Rcheck directory
path: check/prolfqua.Rcheck
if-no-files-found: warn
# - uses: actions/upload-artifact@v3
# with:
# name: R_LIBS_SITE directory
# path: /home/runner/work/_temp/Library/
# if-no-files-found: warn