Update Website and Docs (#150) #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} | |