Marc Kupietz | 81565a6 | 2020-03-06 15:26:38 +0100 | [diff] [blame] | 1 | on: [push, pull_request] |
| 2 | |
| 3 | name: check-mac |
| 4 | |
| 5 | jobs: |
| 6 | R-CMD-check: |
| 7 | runs-on: ${{ matrix.config.os }} |
| 8 | |
| 9 | name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 10 | |
| 11 | strategy: |
| 12 | fail-fast: false |
| 13 | matrix: |
| 14 | config: |
Mauricio Vargas | b212ed0 | 2020-05-05 20:12:46 -0400 | [diff] [blame] | 15 | - { os: macOS-latest, r: '4.0' } |
Marc Kupietz | 81565a6 | 2020-03-06 15:26:38 +0100 | [diff] [blame] | 16 | |
| 17 | env: |
| 18 | R_REMOTES_NO_ERRORS_FROM_WARNINGS: true |
| 19 | CRAN: ${{ matrix.config.cran }} |
| 20 | |
| 21 | steps: |
| 22 | - uses: actions/checkout@v1 |
| 23 | |
| 24 | - uses: r-lib/actions/setup-r@master |
| 25 | with: |
| 26 | r-version: ${{ matrix.config.r }} |
| 27 | |
| 28 | - uses: r-lib/actions/setup-pandoc@master |
| 29 | |
| 30 | - uses: r-lib/actions/setup-tinytex@master |
| 31 | if: contains(matrix.config.args, 'no-manual') == false |
| 32 | |
Marc Kupietz | 6e30a08 | 2020-05-15 19:15:00 +0200 | [diff] [blame^] | 33 | - name: Install system dependencies |
| 34 | if: runner.os == 'macOS' |
| 35 | run: | |
| 36 | tlmgr install pdftexcmds |
| 37 | |
Marc Kupietz | 81565a6 | 2020-03-06 15:26:38 +0100 | [diff] [blame] | 38 | - name: Cache R packages |
| 39 | uses: actions/cache@v1 |
| 40 | with: |
| 41 | path: ${{ env.R_LIBS_USER }} |
| 42 | key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }} |
| 43 | |
| 44 | - name: Install dependencies |
| 45 | run: Rscript -e "install.packages('remotes')" -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran('rcmdcheck')" -e "install.packages('igraph')" |
| 46 | |
| 47 | - name: Check |
| 48 | run: Rscript -e "rcmdcheck::rcmdcheck(args = '${{ matrix.config.args }}', error_on = 'warning', check_dir = 'check')" |
| 49 | |
| 50 | - name: Upload check results |
| 51 | if: failure() |
| 52 | uses: actions/upload-artifact@master |
| 53 | with: |
| 54 | name: ${{ runner.os }}-r${{ matrix.config.r }}-results |
| 55 | path: check |