Skip to content

Commit

Permalink
Change build logic so we run on PR and run examples
Browse files Browse the repository at this point in the history
  • Loading branch information
crew102 committed Dec 29, 2022
1 parent 489b2f7 commit 723b9b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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]
on: [push, pull_request]

name: R-CMD-check

Expand Down Expand Up @@ -75,14 +75,14 @@ jobs:
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}

# - name: Run examples
# env:
# _R_CHECK_CRAN_INCOMING_REMOTE_: false
# run: |
# options(crayon.enabled = TRUE)
# remotes::install_cran("devtools")
# devtools::run_examples(run_dontrun = TRUE)
# shell: Rscript {0}
- name: Run examples
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: |
options(crayon.enabled = TRUE)
remotes::install_cran("devtools")
devtools::run_examples(run_dontrun = TRUE)
shell: Rscript {0}

- name: Upload check results
if: failure()
Expand Down

0 comments on commit 723b9b2

Please sign in to comment.