Skip to content

Commit

Permalink
added CI for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
EricMarcon committed Oct 30, 2024
1 parent 6b504e5 commit 336e264
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
pull_request:
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
run: |
# Package check
install.packages(c("remotes", "rcmdcheck", "covr", "pkgdown", "tinytex", "roxygen2"))
# TinyTeX to test templates
install.packages("tinytex")
tinytex::install_tinytex(bundle = "TinyTeX")
# Packages for pkgdown articles
install.packages(c("dplyr", "kableExtra"))*
# Packages declared in DESCRIPTION
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Roxygenize
run: roxygen2::roxygenize()
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error", check_dir = "check")
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Pkgdown
# Build the package site locally
run: Rscript -e 'pkgdown::build_site()'

0 comments on commit 336e264

Please sign in to comment.