Skip to content

Commit

Permalink
add setup-r-dependencies (#292)
Browse files Browse the repository at this point in the history
Related to
insightsengineering/nestdevs-tasks#65
Switch to setup-r-dependencies.
Added `teal.reporter` for lookup-refs.

---------

Co-authored-by: Marcin <[email protected]>
  • Loading branch information
vedhav and m7pr authored Dec 11, 2024
1 parent b236029 commit de98257
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
checking top-level files .* NOTE
unit-test-report-brand: >-
https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/thumbs/teal.png
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
r-cmd-non-cran:
name: R CMD Check (non-CRAN) 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
Expand All @@ -62,6 +68,12 @@ jobs:
checking Rd .usage sections .* NOTE
checking for unstated dependencies in vignettes .* NOTE
checking top-level files .* NOTE
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
coverage:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
Expand All @@ -70,6 +82,12 @@ jobs:
with:
additional-env-vars: |
NOT_CRAN=true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
linter:
if: github.event_name != 'push'
name: SuperLinter 🦸‍♀️
Expand All @@ -81,6 +99,12 @@ jobs:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
auto-update: true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
gitleaks:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ jobs:
with:
default-landing-page: latest-tag
additional-unit-test-report-directories: unit-test-report-non-cran
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,25 @@ jobs:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
default-landing-page: latest-tag
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
validation:
name: R Package Validation report 📃
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/validation.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
release:
name: Create release 🎉
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
Expand All @@ -46,6 +59,12 @@ jobs:
checking top-level files .* NOTE
unit-test-report-brand: >-
https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/thumbs/teal.png
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
coverage:
name: Coverage 📔
needs: [release, docs]
Expand All @@ -55,6 +74,12 @@ jobs:
with:
additional-env-vars: |
NOT_CRAN=true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
wasm:
name: Build WASM packages 🧑‍🏭
needs: release
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Scheduled 🕰️

on:
schedule:
- cron: '45 3 * * 0'
- cron: "45 3 * * 0"
workflow_dispatch:
inputs:
chosen-workflow:
Expand Down Expand Up @@ -56,6 +56,12 @@ jobs:
)
name: revdepcheck ↩️
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
with:
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters
rhub:
if: >
github.event_name == 'schedule' || (
Expand All @@ -64,3 +70,9 @@ jobs:
)
name: R-hub 🌐
uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main
with:
lookup-refs: |
insightsengineering/rlistings
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/formatters

0 comments on commit de98257

Please sign in to comment.