ci: add tidy and V8 for HTML manual validation #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # R CMD check with PDF manual on push to master | |
| # Uses r-lib/actions (not rhub) so we control check args | |
| name: R-CMD-check | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| permissions: read-all | |
| jobs: | |
| R-CMD-check: | |
| runs-on: ${{ matrix.config.os }} | |
| name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {os: ubuntu-latest, r: 'devel'} | |
| - {os: ubuntu-latest, r: 'release'} | |
| - {os: macos-latest, r: 'release'} | |
| - {os: windows-latest, r: 'release'} | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| R_KEEP_PKG_SOURCE: yes | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: ${{ matrix.config.r }} | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: any::rcmdcheck, any::tinytex, any::V8 | |
| needs: check | |
| - name: Install system dependencies for HTML manual check | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get install -y tidy | |
| - name: Install system dependencies for HTML manual check (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install tidy-html5 | |
| - uses: r-lib/actions/setup-tinytex@v2 | |
| - name: Install additional LaTeX packages | |
| run: | | |
| tinytex::tlmgr_install(c("makeindex", "collection-fontsrecommended")) | |
| shell: Rscript {0} | |
| - uses: r-lib/actions/check-r-package@v2 | |
| with: | |
| args: '"--as-cran"' | |
| error-on: '"error"' |