From bb90674c97b805f14ccc71370e7844a124254b2a Mon Sep 17 00:00:00 2001 From: Fran Barton Date: Mon, 5 Jan 2026 13:08:38 +0000 Subject: [PATCH 1/5] Update R-CMD-check workflow configuration Updated R-CMD-check workflow to use actions/checkout@v5 and modified build arguments. --- .github/workflows/R-CMD-check.yaml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index ddece75..1d0df36 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -2,43 +2,35 @@ # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: pull_request: - + branches: [ "main" ] 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'} - env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes - steps: - - uses: actions/checkout@v4 - + - uses: actions/checkout@v5 - 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"' + check-dir: '"check"' + build_args: 'c("--no-manual", "--as-cran", "--compact-vignettes=gs+qpdf")' From 0c7f60a8486e202b7272de271611bc822b851fdf Mon Sep 17 00:00:00 2001 From: Fran Barton Date: Mon, 5 Jan 2026 13:16:00 +0000 Subject: [PATCH 2/5] Remove check-dir line (as it used the default setting) Updated checkout action version and removed check-dir argument. --- .github/workflows/R-CMD-check.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 1d0df36..2d6aafd 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -18,7 +18,7 @@ jobs: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: r-lib/actions/setup-pandoc@v2 - uses: r-lib/actions/setup-r@v2 with: @@ -32,5 +32,4 @@ jobs: with: upload-snapshots: true error-on: '"error"' - check-dir: '"check"' build_args: 'c("--no-manual", "--as-cran", "--compact-vignettes=gs+qpdf")' From 7bdb1823a12aee31cff0a98b3787fc0fdc6aa96e Mon Sep 17 00:00:00 2001 From: Fran Barton Date: Mon, 5 Jan 2026 13:23:28 +0000 Subject: [PATCH 3/5] Try to get README badge to work (Use CMD check status as at latest release) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0dee32062a6035c94aab4f1f9307e6ccd558a02a Mon Sep 17 00:00:00 2001 From: Fran Barton Date: Mon, 5 Jan 2026 13:24:07 +0000 Subject: [PATCH 4/5] Add release trigger to R-CMD-check workflow --- .github/workflows/R-CMD-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 2d6aafd..8cc60a9 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -3,6 +3,7 @@ on: pull_request: branches: [ "main" ] + release: name: R-CMD-check permissions: read-all jobs: From b431f6bba86253dbbc5b0f122c351574aa914c18 Mon Sep 17 00:00:00 2001 From: Fran Barton Date: Mon, 5 Jan 2026 13:32:26 +0000 Subject: [PATCH 5/5] Remove apparently unnecessary quotes --- .github/workflows/R-CMD-check.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 8cc60a9..30919cd 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -2,8 +2,9 @@ # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: pull_request: - branches: [ "main" ] + branches: main release: + types: released name: R-CMD-check permissions: read-all jobs: @@ -14,7 +15,7 @@ jobs: 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