Skip to content

Commit fc323ae

Browse files
Add GitHub Actions for automatic check of the package
1 parent 28b20ba commit fc323ae

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
^man\/figures$
66
^tests\/testthat\/test-kernelChoice\.R$
77
man-roxygen
8+
^\.github$
89

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/check-package.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
- {os: macos-latest, r: 'release'}
22+
- {os: windows-latest, r: 'devel'}
23+
- {os: ubuntu-latest, r: 'devel'}
24+
env:
25+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
26+
R_KEEP_PKG_SOURCE: yes
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
r-version: ${{ matrix.config.r }}
33+
use-public-rspm: true
34+
35+
- uses: r-lib/actions/setup-r-dependencies@v2
36+
with:
37+
extra-packages: any::rcmdcheck
38+
needs: check
39+
40+
- uses: r-lib/actions/check-r-package@v2
41+
with:
42+
upload-snapshots: false
43+
upload-results: false

0 commit comments

Comments
 (0)