-
Notifications
You must be signed in to change notification settings - Fork 27
63 lines (50 loc) · 1.62 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
57
58
59
60
61
62
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches:
- main
- master
- j17
pull_request:
branches:
- main
- master
- j17
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Ant
run: |
cd rcdkjar
ant clean jar
cd ../
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"), repos = "http://cran.us.r-project.org")
install.packages("pkgdown", type = "binary", repos = "http://cran.us.r-project.org")
remotes::install_deps("rcdk", dependencies = TRUE)
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
- name: Install
run: devtools::install("rcdk")
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck("rcdk", args = "--no-manual", error_on = "error")
shell: Rscript {0}