-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (64 loc) · 1.84 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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@v3
with:
name: site
path: docs
checkout-and-deploy:
runs-on: ubuntu-latest
needs: R-CMD-check
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: site
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
email: ${{ secrets.EMAIL }}
build_dir: .
jekyll: no