From aca7d2cb7c1f70cf5e87d25771dc5835a3b6a017 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Sat, 11 May 2024 22:30:49 +0900 Subject: [PATCH] Update GHA (#197) --- .github/workflows/R-CMD-check.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 4e27d24..c98a778 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -1,11 +1,15 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: - branches: main + branches: [main, master] pull_request: - branches: main + branches: [main, master] name: R-CMD-check +permissions: read-all + jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} @@ -16,14 +20,11 @@ jobs: fail-fast: false matrix: config: - - {os: macOS-latest, ggplot2: 'cran', r: 'release'} - - - {os: windows-latest, ggplot2: 'cran', r: 'release'} - + - {os: macos-latest, ggplot2: 'cran', r: 'release'} + - {os: windows-latest, ggplot2: 'cran', r: 'release'} - {os: ubuntu-latest, ggplot2: 'cran', r: 'devel', http-user-agent: 'release'} - {os: ubuntu-latest, ggplot2: 'cran', r: 'release'} - {os: ubuntu-latest, ggplot2: 'cran', r: 'oldrel-1'} - - {os: ubuntu-latest, ggplot2: 'dev', r: 'release'} env: @@ -31,7 +32,7 @@ jobs: R_KEEP_PKG_SOURCE: yes steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 @@ -46,14 +47,14 @@ jobs: extra-packages: any::rcmdcheck needs: check - # TODO: uncomment this when the next version of ggplot2 is released - name: Install dev version of ggplot2 if: matrix.config.ggplot2 == 'dev' uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: tidyverse/ggplot2, tidyverse/purrr + extra-packages: tidyverse/ggplot2 needs: check - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'