diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6761e4d..d1d0158 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,37 +10,22 @@ on: - dev pull_request: -env: - _R_CHECK_FORCE_SUGGESTS_: "false" - jobs: - ci: - - strategy: - matrix: - include: - - {os: macOS-latest} - - {os: ubuntu-latest} - - runs-on: ${{ matrix.os }} - + R-CMD-check: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes steps: - uses: actions/checkout@v3 - - name: Bootstrap - run: | - curl -OLs https://eddelbuettel.github.io/r-ci/run.sh - chmod 0755 run.sh - ./run.sh bootstrap - - - name: Dependencies - run: ./run.sh install_all - - - name: Test - run: ./run.sh run_tests + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true - - name: Coverage - if: ${{ matrix.os == 'ubuntu-latest' }} - run: ./run.sh coverage - + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check + - uses: r-lib/actions/check-r-package@v2