Skip to content

Commit

Permalink
ci: add check_pkgdown step to check job
Browse files Browse the repository at this point in the history
This will help catch pkgdown issues when they are introduced rather
than when the site is built on release.
  • Loading branch information
kyleam committed Dec 19, 2024
1 parent e3bbc6e commit 4a7727b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,20 @@ jobs:
RSPM: ${{ matrix.config.rspm }}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
extra-packages: |
any::pkgdown
any::rcmdcheck
upgrade: ${{ matrix.config.r == '3.6.3' && 'FALSE' || 'TRUE' }}
- name: Install other system dependencies
shell: bash
run: sudo apt-get install dvipng texlive-latex-base texlive-fonts-extra
- uses: r-lib/actions/check-r-package@v2
- name: Check pkgdown
# The pkgdown in the repo for 3.6.3 does not check_pkgdown.
if: matrix.config.r != '3.6.3'
shell: Rscript {0}
run: pkgdown::check_pkgdown()

release:
if: github.ref_type == 'tag'
name: Upload release
Expand Down

0 comments on commit 4a7727b

Please sign in to comment.