Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to r-lib/actions/setup-r-dependencies@v2 #274

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
8 changes: 1 addition & 7 deletions .github/workflows/bioccheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ on:
required: false
type: string
default: staged-dependencies
lookup-refs:
description: |
List of package references to be used by setup-r-dependencies action if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: ""

concurrency:
group: bioccheck-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -158,7 +152,7 @@ jobs:
- name: Setup R dependencies 🎦
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a comment, so it can not be merged.
It should not be merged before other packages are not suited for changes introduced in this PR.
Other packages are tracked in this card insightsengineering/nestdevs-tasks#103

if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down
33 changes: 3 additions & 30 deletions .github/workflows/build-check-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,40 +138,13 @@ on:
required: false
type: string
default: staged-dependencies
lookup-refs:
description: |
List of package references to be used by setup-r-dependencies action if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: ""
skip-desc-branch:
description: |
Passed to `insightsengineering/setup-r-dependencies`.
Used only if deps-installation-method == 'setup-r-dependencies'.
required: false
type: boolean
default: false
skip-desc-dev:
description: |
Passed to `insightsengineering/setup-r-dependencies`.
Used only if deps-installation-method == 'setup-r-dependencies'.
required: false
type: boolean
default: false
repository-list:
description: |
Passed to `insightsengineering/setup-r-dependencies`.
Used only if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: "PPM=PPM@latest"
cache-version:
description: |
Passed to `insightsengineering/setup-r-dependencies`.
Passed to `r-lib/actions/setup-r-dependencies`.
Used only if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: "1"
default: 1
unit-test-report-brand:
description: Image URL to use in unit test report for branding. If empty, the default xunit-viewer brand will be used.
required: false
Expand Down Expand Up @@ -441,7 +414,7 @@ jobs:
if: >-
env.deps_installation_method == 'setup-r-dependencies'
&& inputs.install-deps-from-package-repositories == ''
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ on:
required: false
type: string
default: staged-dependencies
lookup-refs:
description: |
List of package references to be used by setup-r-dependencies action if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: ""

concurrency:
group: docs-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -230,7 +224,7 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
shell: bash

- name: Install dependencies
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand All @@ -100,7 +100,7 @@ jobs:

- name: revdepcheck 🔄
id: revdepcheck
uses: insightsengineering/r-revdepcheck-action@main
uses: r-lib/r-revdepcheck-action@main
with:
github-token: ${{ steps.github-token.outputs.token }}
additional-env-vars: ${{ inputs.additional-env-vars }}
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ on:
gcc13,
noSuggests,
donttest
lookup-refs:
description: |
List of package references to be used for the feature branch.
Multiple entries in new lines or separated by commas.
required: false
default: ""
type: string

concurrency:
group: r-hub-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -96,7 +89,7 @@ jobs:
with:
job-config: ${{ matrix.config.job-config }}

- uses: insightsengineering/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down Expand Up @@ -149,7 +142,7 @@ jobs:
with:
job-config: ${{ matrix.config.job-config }}

- uses: insightsengineering/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/roxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ on:
required: false
type: string
default: staged-dependencies
lookup-refs:
description: |
Passed to insightsengineering/setup-r-dependencies. See its documentation.
Used only if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: ""
secrets:
REPO_GITHUB_TOKEN:
description: |
Expand Down Expand Up @@ -152,7 +145,7 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
env.deps_installation_method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ on:
required: false
type: string
default: staged-dependencies
lookup-refs:
description: |
List of package references to be used by setup-r-dependencies action if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: ""
secrets:
REPO_GITHUB_TOKEN:
description: |
Expand Down Expand Up @@ -243,7 +237,7 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ on:
required: false
type: string
default: staged-dependencies
lookup-refs:
description: |
List of package references to be used by setup-r-dependencies action if deps-installation-method == 'setup-r-dependencies'.
required: false
type: string
default: ""
secrets:
REPO_GITHUB_TOKEN:
description: |
Expand Down Expand Up @@ -147,7 +141,7 @@ jobs:
- name: Setup R dependencies 🎦
if: >-
inputs.deps-installation-method == 'setup-r-dependencies'
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
Expand Down