Skip to content

Commit 7cd2aa8

Browse files
authored
Update devcheck.yml
1 parent 09a4e1b commit 7cd2aa8

1 file changed

Lines changed: 26 additions & 22 deletions

File tree

.github/workflows/devcheck.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,44 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2-
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
1+
name: R-CMD-check
2+
33
on:
44
push:
5-
branches: [development]
5+
branches: [development, main, master]
66
pull_request:
7-
branches: [development]
7+
branches: [development, main, master]
88

9-
name: R-CMD-check
9+
permissions:
10+
contents: read
1011

1112
jobs:
1213
R-CMD-check:
13-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
r: ['release'] # add 'devel', 'oldrel-1' if you want broader coverage
20+
1421
env:
1522
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1623
R_KEEP_PKG_SOURCE: yes
24+
1725
steps:
18-
- uses: actions/checkout@v2
26+
- name: Checkout
27+
uses: actions/checkout@v5
1928

20-
- uses: r-lib/actions/setup-r@v1
29+
- name: Set up R ${{ matrix.r }}
30+
uses: r-lib/actions/setup-r@v2
2131
with:
32+
r-version: ${{ matrix.r }}
2233
use-public-rspm: true
2334

24-
- uses: r-lib/actions/setup-r-dependencies@v1
35+
- name: Install dependencies
36+
uses: r-lib/actions/setup-r-dependencies@v2
2537
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
38+
extra-packages: any::rcmdcheck
39+
needs: check
3440

35-
- name: Upload check results
36-
if: failure()
37-
uses: actions/upload-artifact@main
41+
- name: Check
42+
uses: r-lib/actions/check-r-package@v2
3843
with:
39-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
40-
path: check
44+
upload-snapshots: true

0 commit comments

Comments
 (0)