From 2f3d8233a0cfd22ebe20028fb673f777af3a3431 Mon Sep 17 00:00:00 2001 From: Dony Unardi Date: Tue, 10 Dec 2024 08:05:17 -0800 Subject: [PATCH] add setup-r-dependencies (#631) Related to https://github.com/insightsengineering/nestdevs-tasks/issues/65 Switched to setup-r-dependencies and added these packages for lookup-refs: * teal.code * teal.data * teal.logger * teal.widgets * formatters * rtables --- .github/workflows/check.yaml | 32 +++++++++++++++++++++++++++++++ .github/workflows/docs.yaml | 8 ++++++++ .github/workflows/release.yaml | 33 ++++++++++++++++++++++++++++++++ .github/workflows/scheduled.yaml | 12 ++++++++++++ 4 files changed, 85 insertions(+) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index a9fb233be..4b9823515 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -41,6 +41,14 @@ 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/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables r-cmd-non-cran: name: R CMD Check (non-CRAN) 🧬 uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main @@ -62,6 +70,14 @@ 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/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables coverage: name: Coverage πŸ“” uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main @@ -70,6 +86,14 @@ jobs: with: additional-env-vars: | NOT_CRAN=true + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables linter: if: github.event_name != 'push' name: SuperLinter πŸ¦Έβ€β™€οΈ @@ -81,6 +105,14 @@ jobs: REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} with: auto-update: true + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables 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 57ae80042..0da478a6e 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -42,3 +42,11 @@ 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/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aa3e7bb45..d0c34add6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,12 +16,29 @@ jobs: REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} with: default-landing-page: latest-tag + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables 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/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables release: name: Create release πŸŽ‰ uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main @@ -46,6 +63,14 @@ 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/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables coverage: name: Coverage πŸ“” needs: [release, docs] @@ -55,6 +80,14 @@ jobs: with: additional-env-vars: | NOT_CRAN=true + deps-installation-method: setup-r-dependencies + lookup-refs: | + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables wasm: name: Build WASM packages πŸ§‘β€πŸ­ needs: release diff --git a/.github/workflows/scheduled.yaml b/.github/workflows/scheduled.yaml index 3c621eb25..7b4925d34 100644 --- a/.github/workflows/scheduled.yaml +++ b/.github/workflows/scheduled.yaml @@ -58,6 +58,14 @@ jobs: ) name: revdepcheck ↩️ uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main + with: + lookup-refs: | + insightsengineering/teal.code + insightsengineering/teal.data + insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables rhub: if: > github.event_name == 'schedule' || ( @@ -68,7 +76,11 @@ jobs: uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main with: lookup-refs: | + insightsengineering/teal.code insightsengineering/teal.data insightsengineering/teal.logger + insightsengineering/teal.widgets + insightsengineering/formatters + insightsengineering/rtables secrets: REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}