|
1 | | -# Workflow derived from https://github.com/r-lib/actions/tree/master/examples |
| 1 | +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples |
2 | 2 | # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help |
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | branches:[main, master] |
6 | 6 | pull_request: |
7 | 7 | branches:[main, master] |
8 | 8 |
|
9 | | -name:R-CMD-check |
| 9 | +name:R-CMD-check.yaml |
| 10 | + |
| 11 | +permissions:read-all |
10 | 12 |
|
11 | 13 | jobs: |
12 | 14 | R-CMD-check: |
13 | | -runs-on:ubuntu-latest |
| 15 | +runs-on:${{ matrix.config.os }} |
| 16 | + |
| 17 | +name:${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 18 | + |
| 19 | +strategy: |
| 20 | +fail-fast:false |
| 21 | +matrix: |
| 22 | +config: |
| 23 | + -{os: macos-latest, r: 'release'} |
| 24 | + -{os: windows-latest, r: 'release'} |
| 25 | + -{os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} |
| 26 | + -{os: ubuntu-latest, r: 'release'} |
| 27 | + -{os: ubuntu-latest, r: 'oldrel-1'} |
| 28 | + |
14 | 29 | env: |
15 | 30 | GITHUB_PAT:${{ secrets.GITHUB_TOKEN }} |
16 | 31 | R_KEEP_PKG_SOURCE:yes |
| 32 | + |
17 | 33 | steps: |
18 | | - -uses:actions/checkout@v2 |
| 34 | + -uses:actions/checkout@v4 |
| 35 | + |
| 36 | + -uses:r-lib/actions/setup-pandoc@v2 |
19 | 37 |
|
20 | | - -uses:r-lib/actions/setup-r@v1 |
| 38 | + -uses:r-lib/actions/setup-r@v2 |
21 | 39 | with: |
| 40 | +r-version:${{ matrix.config.r }} |
| 41 | +http-user-agent:${{ matrix.config.http-user-agent }} |
22 | 42 | use-public-rspm:true |
23 | 43 |
|
24 | | - -uses:r-lib/actions/setup-r-dependencies@v1 |
| 44 | + -uses:r-lib/actions/setup-r-dependencies@v2 |
25 | 45 | with: |
26 | | -extra-packages:rcmdcheck |
27 | | - |
28 | | - -uses:r-lib/actions/check-r-package@v1 |
29 | | - |
30 | | - -name:Show testthat output |
31 | | -if:always() |
32 | | -run:find check -name 'testthat.Rout*' -exec cat '{}' \; || true |
33 | | -shell:bash |
| 46 | +extra-packages:any::rcmdcheck |
| 47 | +needs:check |
34 | 48 |
|
35 | | - -name:Upload check results |
36 | | -if:failure() |
37 | | -uses:actions/upload-artifact@main |
| 49 | + -uses:r-lib/actions/check-r-package@v2 |
38 | 50 | with: |
39 | | -name:${{ runner.os }}-r${{ matrix.config.r }}-results |
40 | | -path:check |
| 51 | +upload-snapshots:true |
| 52 | +build_args:'c("--no-manual","--compact-vignettes=gs+qpdf")' |