-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (50 loc) · 1.39 KB
/
docker_test.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
49
50
51
name: PACE-HRH Devtools build and test
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
paths:
- 'pacehrh/**'
- '.github/**'
jobs:
build:
runs-on: ubuntu-latest
container:
image: mewu/rimage:pandoc
steps:
- uses: actions/checkout@v2
- name: Setup Dependency
working-directory: 'tests/setup'
run: |
Rscript install_dep_for_tests.R
- name: Check package
run: |
echo y | apt-get update --allow-releaseinfo-change
echo y | apt-get install texinfo
echo y | apt-get install texlive-latex-base
echo y | apt-get install texlive-latex-extra
echo y | apt-get install texlive-fonts-recommended
echo y | apt install texlive-fonts-extra
R CMD check pacehrh --as-cran
- name: Run unittest
working-directory: 'pacehrh'
run: Rscript -e 'devtools::test()'
- name: Lint Check
working-directory: 'pacehrh'
run: >
install.packages("lintr");
library(lintr);
devtools::load_all();
expect_lint_free()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
NOT_CRAN: true
- uses: actions/upload-artifact@v3
if: failure()
with:
name: r_cmd_check_result
path: pacehrh.Rcheck/**/*.log