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"'