blob: 21bc5dca08e9f08c6cab0c56edef1efe5576e6bd [file] [log] [blame]
Marc Kupietz81565a62020-03-06 15:26:38 +01001on: [push, pull_request]
2
3name: check-windows
4
5jobs:
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:
Marc Kupietzb022a4e2021-09-04 18:10:21 +020015 - { os: windows-latest, r: 'release', args: "--no-manual"}
16 - { os: windows-latest, r: 'devel', args: "--no-manual"}
Marc Kupietz81565a62020-03-06 15:26:38 +010017
18 env:
19 R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
20 CRAN: ${{ matrix.config.cran }}
21
22 steps:
23 - uses: actions/checkout@v1
24
25 - uses: r-lib/actions/setup-r@master
26 with:
27 r-version: ${{ matrix.config.r }}
28
29 - uses: r-lib/actions/setup-pandoc@master
30
31 - uses: r-lib/actions/setup-tinytex@master
32 if: contains(matrix.config.args, 'no-manual') == false
33
34 - name: Cache R packages
35 uses: actions/cache@v1
36 with:
37 path: ${{ env.R_LIBS_USER }}
38 key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }}
39
40 - name: Install dependencies
41 run: Rscript -e "install.packages('remotes')" -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran('rcmdcheck')" -e "install.packages('igraph')"
42
43 - name: Check
Marc Kupietza6a42572020-03-06 16:50:22 +010044 run: Rscript -e "rcmdcheck::rcmdcheck(args = '${{ matrix.config.args }}', error_on = 'note', check_dir = 'check')"
Marc Kupietz81565a62020-03-06 15:26:38 +010045
46 - name: Upload check results
47 if: failure()
48 uses: actions/upload-artifact@master
49 with:
50 name: ${{ runner.os }}-r${{ matrix.config.r }}-results
51 path: check