- Notifications
You must be signed in to change notification settings - Fork108
The Beaker web browser was discontinued and URL is no longer active#54
This file contains hidden or 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
| name:build | |
| on: | |
| push: | |
| branches-ignore: | |
| -'**skip**' | |
| tags-ignore: | |
| -'**' | |
| paths: | |
| -'.github/workflows/build.yaml' | |
| -'.Rbuildignore' | |
| -'DESCRIPTION' | |
| -'man/**' | |
| -'NAMESPACE' | |
| -'R/**' | |
| -'scripts/ci/**' | |
| -'tests/**' | |
| -'vignettes/**' | |
| pull_request: | |
| paths: | |
| -'.github/workflows/build.yaml' | |
| -'.Rbuildignore' | |
| -'DESCRIPTION' | |
| -'man/**' | |
| -'NAMESPACE' | |
| -'R/**' | |
| -'scripts/ci/**' | |
| -'tests/**' | |
| -'vignettes/**' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on:ubuntu-24.04 | |
| name:build | |
| env: | |
| NOT_CRAN:TRUE | |
| _R_CHECK_CRAN_INCOMING_:TRUE | |
| _R_CHECK_CRAN_INCOMING_REMOTE_:FALSE | |
| steps: | |
| -uses:actions/checkout@v4 | |
| -name:Setup r2u | |
| uses:eddelbuettel/github-actions/r2u-setup@master | |
| with: | |
| bspm-version-check:"FALSE" | |
| -name:Install dependencies | |
| run:sudo bash scripts/ci/install-dependencies.sh | |
| -name:Session information | |
| run:sessionInfo() | |
| shell:Rscript {0} | |
| -name:Build | |
| run:R CMD build --no-manual . | |
| -name:Check | |
| run:R CMD check --no-manual --no-tests --as-cran workflowr_*.tar.gz | |
| -name:Install | |
| run:R CMD INSTALL --no-docs --no-multiarch --no-staged-install workflowr_*.tar.gz | |
| shell:sudo bash {0} | |
| -name:Test essential functionality | |
| run:| | |
| library("workflowr") | |
| wflow_start("/tmp/build", user.name = "test", user.email = "test") | |
| rmd <- "analysis/build.Rmd" | |
| wflow_open(rmd) | |
| lines <- c( | |
| "", | |
| "```{r chunkname}", | |
| "plot(1:10)", | |
| "```" | |
| ) | |
| cat(lines, file = rmd, sep = "\n", append = TRUE) | |
| wflow_build("analysis/*Rmd", view = FALSE) | |
| wflow_status() | |
| wflow_publish("analysis/build.Rmd", view = FALSE) | |
| wflow_status() | |
| wflow_use_github("test", create_on_github = FALSE) | |
| wflow_use_gitlab("test") | |
| wflow_remove("analysis/build.Rmd") | |
| wflow_status() | |
| shell:Rscript {0} |