blob: fac7a075b1f69d71d7344a960da1e0b13358c8f1 [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:
Mauricio Vargasb212ed02020-05-05 20:12:46 -040015 - { os: windows-latest, r: '4.0', args: "--no-manual"}
Marc Kupietz81565a62020-03-06 15:26:38 +010016
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
33 - name: Cache R packages
34 uses: actions/cache@v1
35 with:
36 path: ${{ env.R_LIBS_USER }}
37 key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }}
38
39 - name: Install dependencies
40 run: Rscript -e "install.packages('remotes')" -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran('rcmdcheck')" -e "install.packages('igraph')"
41
42 - name: Check
Marc Kupietza6a42572020-03-06 16:50:22 +010043 run: Rscript -e "rcmdcheck::rcmdcheck(args = '${{ matrix.config.args }}', error_on = 'note', check_dir = 'check')"
Marc Kupietz81565a62020-03-06 15:26:38 +010044
45 - name: Upload check results
46 if: failure()
47 uses: actions/upload-artifact@master
48 with:
49 name: ${{ runner.os }}-r${{ matrix.config.r }}-results
50 path: check