Skip to content

Commit 8a4aad6

Browse files
committed
Update gh actions
1 parent 2880d01 commit 8a4aad6

1 file changed

Lines changed: 15 additions & 21 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
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
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
55
branches: [main, master]
66
pull_request:
7-
branches: [main, master]
87

9-
name: R-CMD-check
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
1011

1112
jobs:
1213
R-CMD-check:
@@ -18,40 +19,33 @@ jobs:
1819
fail-fast: false
1920
matrix:
2021
config:
21-
- {os: macOS-latest, r: 'release'}
22+
- {os: macos-latest, r: 'release'}
2223
- {os: windows-latest, r: 'release'}
2324
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
2425
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
2527

2628
env:
2729
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2830
R_KEEP_PKG_SOURCE: yes
2931

3032
steps:
31-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
3234

33-
- uses: r-lib/actions/setup-pandoc@v1
35+
- uses: r-lib/actions/setup-pandoc@v2
3436

35-
- uses: r-lib/actions/setup-r@v1
37+
- uses: r-lib/actions/setup-r@v2
3638
with:
3739
r-version: ${{ matrix.config.r }}
3840
http-user-agent: ${{ matrix.config.http-user-agent }}
3941
use-public-rspm: true
4042

41-
- uses: r-lib/actions/setup-r-dependencies@v1
43+
- uses: r-lib/actions/setup-r-dependencies@v2
4244
with:
43-
extra-packages: rcmdcheck
44-
45-
- uses: r-lib/actions/check-r-package@v1
46-
47-
- name: Show testthat output
48-
if: always()
49-
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
50-
shell: bash
45+
extra-packages: any::rcmdcheck
46+
needs: check
5147

52-
- name: Upload check results
53-
if: failure()
54-
uses: actions/upload-artifact@main
48+
- uses: r-lib/actions/check-r-package@v2
5549
with:
56-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
57-
path: check
50+
upload-snapshots: true
51+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

0 commit comments

Comments
 (0)