Skip to content

Commit f06bc02

Browse files
committed
Create rchk.yml
1 parent 55e0ef9 commit f06bc02

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/rchk.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- master
6+
paths:
7+
- '.github/workflows/rchk.yml'
8+
- 'src/**'
9+
- 'inst/include/**'
10+
- 'memcheck/**'
11+
- 'tests/testthat/**.R'
12+
- 'vignettes/**.Rmd'
13+
pull_request:
14+
paths:
15+
- '.github/workflows/rchk.yml'
16+
- 'src/**'
17+
- 'inst/include/**'
18+
- 'memcheck/**'
19+
- 'tests/testthat/**.R'
20+
- 'vignettes/**.Rmd'
21+
22+
name: rchk
23+
24+
jobs:
25+
rchk:
26+
runs-on: ubuntu-latest
27+
container:
28+
image: rhub/ubuntu-rchk
29+
options: --user=root
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Set up rchk
34+
uses: r-lib/actions/run-rchk@v2
35+
with:
36+
setup-only: true
37+
38+
- uses: randy3k/gh-actions/r-install-deps@main
39+
with:
40+
cache-version: rchk-1
41+
42+
- name: Install package
43+
run: |
44+
remotes::install_local()
45+
shell: Rscript {0}
46+
47+
- uses: r-lib/actions/run-rchk@v2
48+
with:
49+
run-only: true

0 commit comments

Comments
 (0)