From 9f0818384fbbfec61d40977333defbab41297b33 Mon Sep 17 00:00:00 2001 From: vedhav Date: Tue, 10 Dec 2024 17:02:50 +0530 Subject: [PATCH] add setup-r-dependencies --- .github/workflows/check.yaml | 52 ++++++++++++++++++++++++++++++++ .github/workflows/docs.yaml | 13 ++++++++ .github/workflows/release.yaml | 40 ++++++++++++++++++++++++ .github/workflows/scheduled.yaml | 28 ++++++++++++++++- 4 files changed, 132 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 70417e4f..2cb86544 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -29,6 +29,19 @@ jobs: _R_CHECK_CRAN_INCOMING_REMOTE_=false _R_CHECK_EXAMPLE_TIMING_THRESHOLD_=10 additional-r-cmd-check-params: --as-cran + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice r-cmd-non-cran: name: R CMD Check (non-CRAN) 🧬 uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main @@ -40,6 +53,19 @@ jobs: enforce-note-blocklist: true concurrency-group: non-cran unit-test-report-directory: unit-test-report-non-cran + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice coverage: name: Coverage πŸ“” uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main @@ -48,6 +74,19 @@ jobs: with: additional-env-vars: | NOT_CRAN=true + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice linter: if: github.event_name != 'push' name: SuperLinter πŸ¦Έβ€β™€οΈ @@ -59,6 +98,19 @@ jobs: REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} with: auto-update: true + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice gitleaks: name: gitleaks πŸ’§ uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 57ae8004..76512f82 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -42,3 +42,16 @@ 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/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cf7732ab..826049f6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,6 +17,19 @@ jobs: with: skip-r-cmd-check: true skip-r-cmd-install: true + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice docs: name: Pkgdown Docs πŸ“š needs: release @@ -25,12 +38,39 @@ jobs: REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} with: default-landing-page: latest-tag + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice 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/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice release: name: Create release πŸŽ‰ uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main diff --git a/.github/workflows/scheduled.yaml b/.github/workflows/scheduled.yaml index 32599115..1b485b22 100644 --- a/.github/workflows/scheduled.yaml +++ b/.github/workflows/scheduled.yaml @@ -3,7 +3,7 @@ name: Scheduled πŸ•°οΈ on: schedule: - - cron: '45 3 * * 0' + - cron: "45 3 * * 0" workflow_dispatch: inputs: chosen-workflow: @@ -56,6 +56,19 @@ jobs: ) name: revdepcheck ↩️ uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main + with: + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice rhub: if: > github.event_name == 'schedule' || ( @@ -64,3 +77,16 @@ jobs: ) name: R-hub 🌐 uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main + with: + lookup-refs: | + insightsengineering/formatters + insightsengineering/rtables + insightsengineering/rtables.officer + insightsengineering/teal + insightsengineering/teal.transform + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.reporter + insightsengineering/teal.widgets + insightsengineering/teal.slice