R-CMD-check #217
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'R/**' | |
- 'DESCRIPTION' | |
- 'NAMESPACE' | |
- 'src/**' | |
- 'tests/**' | |
pull_request: | |
schedule: | |
# Rerun checks daily, after facilebio/facilebio_base_extra is rebuilt. | |
# This will catch failures due to changes in functionality of packages | |
# we depend on. | |
# facilebio_base_extra builds every day 4AM pacific time (11 AM UTC), so | |
# we will build this an hour after that (the same time facilebio/facilebio) | |
- cron: '0 12 * * *' | |
workflow_dispatch: | |
inputs: | |
dummy: | |
description: 'A dummy variable to enable manual workflow execution' | |
required: false | |
default: 'gitty up' | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
if: "!contains(github.event.head_commit.message, 'ci-skip')" | |
runs-on: ubuntu-latest | |
container: facilebio/facilebio | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
NOT_CRAN: true | |
CI: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
install-r: false | |
- name: Install dependencies | |
run: remotes::install_deps(dependencies = TRUE, upgrade = FALSE) | |
shell: Rscript {0} | |
- name: Check | |
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") | |
shell: Rscript {0} |