try local per https://github.com/r-lib/actions/tree/v2/setup-r-depend… #83
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: | ||
- dev | ||
# - main | ||
# - master | ||
# pull_request: | ||
# branches: | ||
# - main | ||
# - master | ||
name: R-CMD-check-dev | ||
jobs: | ||
R-CMD-check-dev: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: r-lib/actions/setup-r@v2 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache: "always" | ||
- uses: r-lib/actions/setup-pandoc@v2 | ||
- name: Cache R packages | ||
if: runner.os != 'Windows' | ||
uses: actions/cache@v1 | ||
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: Check | ||
run: | | ||
options(crayon.enabled = TRUE) | ||
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "error", check_dir = "check") | ||
shell: Rscript {0} | ||
- name: Test live dataverse (vignette) | ||
with: | ||
extra-packages: any::pkgdown, local::. | ||
run: | | ||
Check failure on line 47 in .github/workflows/R-CMD-check-dev.yaml GitHub Actions / R-CMD-check-devInvalid workflow file
|
||
source("tests/B-search_ghaction.R") | ||
source("tests/C-download_ghaction.R") | ||
shell: Rscript {0} | ||
- name: Test coverage | ||
run: covr::codecov() | ||
shell: Rscript {0} |