From a0647ca5d0e29f35651465421810a1738103e58f Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 19 Dec 2024 13:19:57 -0500 Subject: [PATCH] ci: add check_pkgdown step to check job This will help catch pkgdown issues when they are introduced rather than when the site is built on release. --- .github/workflows/main.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e01b3aa..18ae04f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -35,12 +35,17 @@ jobs: use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: any::rcmdcheck + extra-packages: | + any::pkgdown + any::rcmdcheck upgrade: 'TRUE' - name: Install pdflatex shell: bash run: sudo apt-get install texlive-latex-base texlive-fonts-extra - uses: r-lib/actions/check-r-package@v2 + - name: Check pkgdown + shell: Rscript {0} + run: pkgdown::check_pkgdown() release: if: github.ref_type == 'tag' name: Upload release