Skip to content

Commit 04cceef

Browse files
Add GHA workflow for checking valid HTML5 docs
To know more about new HTML5 check in R-devel, see: https://blog.r-project.org/2022/04/08/enhancements-to-html-documentation/ Workflow from: https://github.com/r-lib/actions/blob/v2-branch/examples/html-5-check.yaml
1 parent 62238a8 commit 04cceef

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/html-5-check.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: HTML5 check
10+
11+
jobs:
12+
HTML5-check:
13+
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
R_KEEP_PKG_SOURCE: yes
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
r-version: 'devel'
23+
http-user-agent: 'release'
24+
use-public-rspm: true
25+
26+
- uses: r-lib/actions/setup-r-dependencies@v2
27+
with:
28+
extra-packages: any::rcmdcheck
29+
dependencies: 'character()'
30+
31+
- name: Install pdflatex
32+
run: sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
33+
34+
- name: Install tidy
35+
run: sudo apt install tidy
36+
37+
- uses: r-lib/actions/check-r-package@v2
38+
with:
39+
args: 'c("--as-cran", "--no-codoc", "--no-examples", "--no-tests", "--no-vignettes", "--no-build-vignettes", "--ignore-vignettes", "--no-install")'
40+
build_args: 'c("--no-build-vignettes")'
41+
error-on: '"note"'
42+
env:
43+
_R_CHECK_CRAN_INCOMING_REMOTE_: false
44+
_R_CHECK_CRAN_INCOMING_: false

0 commit comments

Comments
 (0)