From 3d1728923ea4dd49c9973202a82e955b471f9d70 Mon Sep 17 00:00:00 2001 From: DavisVaughan Date: Thu, 7 Apr 2022 10:03:55 -0400 Subject: [PATCH 1/2] Add `check-hard.yaml` example to mimic `noSuggests` --- examples/check-hard.yaml | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 examples/check-hard.yaml diff --git a/examples/check-hard.yaml b/examples/check-hard.yaml new file mode 100644 index 000000000..2d225f825 --- /dev/null +++ b/examples/check-hard.yaml @@ -0,0 +1,57 @@ +# 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 +# +# NOTE: This workflow only directly installs "hard" dependencies, i.e. Depends, +# Imports, and LinkingTo dependencies. Notably, Suggests dependencies are never +# installed, with the exception of testthat, knitr, and rmarkdown. The cache is +# never used to avoid accidentally restoring a cache containing a suggested +# dependency. +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: R-CMD-check-hard + +jobs: + R-CMD-check: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + strategy: + fail-fast: false + matrix: + config: + - {os: ubuntu-18.04, r: 'release'} + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + + steps: + - uses: actions/checkout@v2 + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: ${{ matrix.config.r }} + http-user-agent: ${{ matrix.config.http-user-agent }} + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + dependencies: '"hard"' + cache: false + extra-packages: | + any::rcmdcheck + any::testthat + any::knitr + any::rmarkdown + needs: check + + - uses: r-lib/actions/check-r-package@v2 + with: + upload-snapshots: true From 06c390c3f4647207d783bfdafa6670f18da58cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Wed, 19 Oct 2022 13:45:54 +0200 Subject: [PATCH 2/2] Rename example workflow: check-hard -> check-no-suggests --- examples/{check-hard.yaml => check-no-suggests.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename examples/{check-hard.yaml => check-no-suggests.yaml} (100%) diff --git a/examples/check-hard.yaml b/examples/check-no-suggests.yaml similarity index 100% rename from examples/check-hard.yaml rename to examples/check-no-suggests.yaml