Skip to content

Commit

Permalink
test: use workflows from branch (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif authored Sep 10, 2024
1 parent fc481ee commit bf7da49
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 9 deletions.
41 changes: 37 additions & 4 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/audit.yaml@main
r-cmd:
name: R CMD Check 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
TESTING_DEPTH=5
Expand All @@ -44,10 +52,18 @@ jobs:
https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/thumbs/teal.png
r-cmd-non-cran:
name: R CMD Check (non-CRAN) 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
additional-env-vars: |
_R_CHECK_EXAMPLE_TIMING_THRESHOLD_=6
NOT_CRAN=true
Expand All @@ -65,20 +81,37 @@ jobs:
checking top-level files .* NOTE
coverage:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
linter:
if: github.event_name != 'push'
name: SuperLinter 🦸‍♀️
uses: insightsengineering/r.pkg.template/.github/workflows/linter.yaml@main
roxygen:
name: Roxygen 🅾
uses: insightsengineering/r.pkg.template/.github/workflows/roxygen.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/roxygen.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
auto-update: true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
gitleaks:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,17 @@ on:
jobs:
docs:
name: Pkgdown Docs 📚
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
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.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
42 changes: 38 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,34 @@ jobs:
docs:
name: Pkgdown Docs 📚
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
default-landing-page: latest-tag
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
validation:
name: R Package Validation report 📃
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/validation.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/validation.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
release:
name: Create release 🎉
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
Expand All @@ -30,10 +47,18 @@ jobs:
build:
name: Build package and reports 🎁
needs: [release, docs]
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
additional-r-cmd-check-params: --as-cran
Expand All @@ -49,9 +74,18 @@ jobs:
coverage:
name: Coverage 📔
needs: [release, docs]
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@choose-between-staged-dependencies-and-setup-r-dependencies
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal.data
insightsengineering/teal.slice
insightsengineering/teal.code
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
wasm:
name: Build WASM packages 🧑‍🏭
needs: release
Expand Down

0 comments on commit bf7da49

Please sign in to comment.