Simplify GitHub Actions workflows for better compatibility #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
| # Simple R CMD check workflow | |
| on: | |
| push: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| name: R-CMD-check | |
| jobs: | |
| R-CMD-check: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libcurl4-openssl-dev libxml2-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev | |
| - name: Install R dependencies | |
| run: | | |
| install.packages(c("remotes", "rcmdcheck")) | |
| remotes::install_deps(dependencies = TRUE) | |
| shell: Rscript {0} | |
| - name: Check | |
| env: | |
| _R_CHECK_CRAN_INCOMING_REMOTE_: false | |
| _R_CHECK_FORCE_SUGGESTS_: false | |
| run: | | |
| rcmdcheck::rcmdcheck(args = c("--no-manual", "--no-build-vignettes", "--no-vignettes"), | |
| error_on = "error", | |
| check_dir = "check") | |
| shell: Rscript {0} |