set urlcolor #131
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: | |
- master | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GH_PAT }} | |
steps: | |
- uses: actions/checkout@master | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Install pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install Ghostscript | |
run: | | |
brew install ghostscript | |
- name: Install dependencies | |
env: | |
GITHUB_PAT: ${{ secrets.GH_PAT }} | |
run: | | |
install.packages(c("remotes", "rcmdcheck", "covr", "pkgdown", "tinytex")) | |
tinytex::install_tinytex() | |
remotes::install_deps(dependencies = TRUE) | |
remotes::install_github("kupietz/kableExtra") | |
shell: Rscript {0} | |
- name: Check | |
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error", check_dir = "check") | |
shell: Rscript {0} | |
- name: Test coverage | |
run: covr::codecov(type = "all") | |
shell: Rscript {0} | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: Pkgdown | |
run: | | |
install.packages(c("dplyr")) | |
pkgdown::build_site(run_dont_run = TRUE, new_process = FALSE) | |
shell: Rscript {0} | |
- name: Build Gallery | |
run: memoiR::knit_all() | |
shell: Rscript {0} | |
- name: Upload artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: site | |
path: docs | |
checkout-and-deploy: | |
runs-on: ubuntu-latest | |
needs: R-CMD-check | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
with: | |
ref: 'gh-pages' | |
- name: Download artifact | |
uses: actions/download-artifact@master | |
with: | |
name: site | |
- name: Deploy to GitHub Pages | |
uses: Cecilapp/GitHub-Pages-deploy@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
with: | |
email: ${{ secrets.EMAIL }} | |
build_dir: . | |
jekyll: no |