From e36ff68e28c66ca98033e961fb06a691b7d4f188 Mon Sep 17 00:00:00 2001 From: tfry-git Date: Fri, 14 Jun 2024 17:57:37 +0200 Subject: [PATCH 1/2] 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"' From 130a7786c9e3fb79287ca331b0f76ff718e2b0fd Mon Sep 17 00:00:00 2001 From: tfry-git Date: Fri, 14 Jun 2024 23:12:18 +0200 Subject: [PATCH 2/2] Add a scheduled (monthly) check to catch issues due to external changes --- .github/workflows/package_check.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package_check.yml b/.github/workflows/package_check.yml index 8c3b089..23d0db7 100644 --- a/.github/workflows/package_check.yml +++ b/.github/workflows/package_check.yml @@ -1,5 +1,10 @@ name: R Build and Checks -on: [push, pull_request] + +on: + push: + pull_request: + schedule: + - cron: "42 3 21 * *" jobs: R-CMD-check: