diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index ddece75..30919cd 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -2,43 +2,36 @@ # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: pull_request: - + branches: main + release: + types: released name: R-CMD-check - permissions: read-all - jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) - strategy: fail-fast: false matrix: config: - - {os: windows-latest, r: 'release'} - + - {os: windows-latest, r: release} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes - steps: - - uses: actions/checkout@v4 - + - uses: actions/checkout@v6 - uses: r-lib/actions/setup-pandoc@v2 - - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} use-public-rspm: true - - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: any::rcmdcheck, any::httpuv + extra-packages: any::rcmdcheck needs: check - - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true - build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' + error-on: '"error"' + build_args: 'c("--no-manual", "--as-cran", "--compact-vignettes=gs+qpdf")' diff --git a/README.md b/README.md index 39fbb25..31f767d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ has not yet been a stable release][repostatus_svg]][repostatus_info] [repostatus_svg]: https://www.repostatus.org/badges/latest/wip.svg [lifecycle]: https://lifecycle.r-lib.org/articles/stages.html#experimental [lifecycle_svg]: https://img.shields.io/badge/lifecycle-experimental-orange.svg -[cmd_svg]: https://github.com/The-Strategy-Unit/azkit/actions/workflows/R-CMD-check.yaml/badge.svg +[cmd_svg]: https://github.com/The-Strategy-Unit/azkit/actions/workflows/R-CMD-check.yaml/badge.svg?event=release [cmd_yaml]: https://github.com/The-Strategy-Unit/azkit/actions/workflows/R-CMD-check.yaml