Skip to content

Commit

Permalink
Add automated check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tfry-git committed Jun 14, 2024
1 parent 108a161 commit e36ff68
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
^\.travis\.yml$
^\.github/.*
^README\.md$
26 changes: 26 additions & 0 deletions .github/workflows/package_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: R Build and Checks
on: [push, pull_request]

jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran")'
error-on: '"note"'
check-dir: '"check"'

0 comments on commit e36ff68

Please sign in to comment.