Skip to content

Use URLS that work in comment #80

Use URLS that work in comment

Use URLS that work in comment #80

# 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 = "warning", check_dir = "check")
shell: Rscript {0}
- name: Test live dataverse (vignette)
run: |
Rscript -e "tests/B-search_ghaction.R"
Rscript -e "tests/C_download_ghaction.R"
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}