From e36ff68e28c66ca98033e961fb06a691b7d4f188 Mon Sep 17 00:00:00 2001 From: tfry-git Date: Fri, 14 Jun 2024 17:57:37 +0200 Subject: [PATCH] Add automated check workflow --- .Rbuildignore | 1 + .github/workflows/package_check.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/package_check.yml diff --git a/.Rbuildignore b/.Rbuildignore index 633754d..a85b913 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,2 +1,3 @@ ^\.travis\.yml$ +^\.github/.* ^README\.md$ diff --git a/.github/workflows/package_check.yml b/.github/workflows/package_check.yml new file mode 100644 index 0000000..8c3b089 --- /dev/null +++ b/.github/workflows/package_check.yml @@ -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"'