Skip to content

Commit

Permalink
Merge branch 'main' into pass-github-token-to-setup-r-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif authored Aug 19, 2024
2 parents 77a56c1 + fc297e1 commit 5f55384
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 22 deletions.
45 changes: 37 additions & 8 deletions .github/workflows/check.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,43 @@ jobs:
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
additional-r-cmd-check-params: --as-cran
enforce-note-blocklist: true
note-blocklist: |
checking dependencies in R code .* NOTE
checking R code for possible problems .* NOTE
checking examples .* NOTE
checking Rd line widths .* NOTE
checking S3 generic/method consistency .* NOTE
checking Rd .usage sections .* NOTE
checking for unstated dependencies in vignettes .* NOTE
checking top-level files .* NOTE
r-cmd-non-cran:
name: R CMD Check (non-CRAN) 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
additional-env-vars: |
NOT_CRAN=true
enforce-note-blocklist: true
concurrency-group: non-cran
unit-test-report-directory: unit-test-report-non-cran
note-blocklist: |
checking dependencies in R code .* NOTE
checking R code for possible problems .* NOTE
checking examples .* NOTE
checking Rd line widths .* NOTE
checking S3 generic/method consistency .* NOTE
checking Rd .usage sections .* NOTE
checking for unstated dependencies in vignettes .* NOTE
checking top-level files .* NOTE
coverage:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
linter:
if: github.event_name == 'pull_request'
if: github.event_name != 'push'
name: SuperLinter 🦸‍♀️
uses: insightsengineering/r.pkg.template/.github/workflows/linter.yaml@main
roxygen:
Expand All @@ -48,11 +78,12 @@ jobs:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
spelling:
if: github.event_name == 'pull_request'
name: Spell Check 🆎
uses: insightsengineering/r.pkg.template/.github/workflows/spelling.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
links:
if: github.event_name == 'pull_request'
if: github.event_name != 'push'
name: Check URLs 🌐
uses: insightsengineering/r.pkg.template/.github/workflows/links.yaml@main
vbump:
Expand All @@ -68,12 +99,10 @@ jobs:
name: License Check 🃏
uses: insightsengineering/r.pkg.template/.github/workflows/licenses.yaml@main
style:
if: github.event_name == 'pull_request'
if: github.event_name != 'push'
name: Style Check 👗
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
with:
auto-update: true
grammar:
if: github.event_name == 'pull_request'
name: Grammar Check 🔤
uses: insightsengineering/r.pkg.template/.github/workflows/grammar.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
7 changes: 5 additions & 2 deletions .github/workflows/docs.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- main
paths:
- "inst/templates/**"
- "_pkgdown.y[a]ml"
- "_pkgdown.*"
- DESCRIPTION
- "**.md"
- "**.Rmd"
Expand All @@ -24,7 +24,7 @@ on:
- main
paths:
- "inst/templates/**"
- "_pkgdown.y[a]ml"
- "_pkgdown.*"
- DESCRIPTION
- "**.md"
- "**.Rmd"
Expand All @@ -39,3 +39,6 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
default-landing-page: latest-tag
additional-unit-test-report-directories: unit-test-report-non-cran
24 changes: 13 additions & 11 deletions .github/workflows/release.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ on:
workflow_dispatch:

jobs:
build:
name: Build package 🎁
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
skip-r-cmd-check: true
skip-r-cmd-install: true
docs:
name: Pkgdown Docs 📚
needs: release
Expand All @@ -36,8 +27,8 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
r-cmd:
name: R CMD Check 🧬
build:
name: Build package and reports 🎁
needs: [release, docs]
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
Expand All @@ -46,9 +37,20 @@ jobs:
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
additional-r-cmd-check-params: --as-cran
enforce-note-blocklist: true
note-blocklist: |
checking dependencies in R code .* NOTE
checking R code for possible problems .* NOTE
checking examples .* NOTE
checking Rd line widths .* NOTE
checking top-level files .* NOTE
coverage:
name: Coverage 📔
needs: [release, docs]
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
wasm:
name: Build WASM packages 🧑‍🏭
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/wasm.yaml@main
8 changes: 7 additions & 1 deletion .github/workflows/scheduled.yaml.shared
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
test-strategy: ["min", "release", "max"]
test-strategy: ["min_cohort", "min_isolated", "release", "max"]
uses: insightsengineering/r.pkg.template/.github/workflows/verdepcheck.yaml@main
name: Dependency Test - ${{ matrix.test-strategy }} 🔢
secrets:
Expand All @@ -26,3 +26,9 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
revdepcheck:
name: revdepcheck ↩️
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
rhub:
name: R-hub 🌐
uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main

0 comments on commit 5f55384

Please sign in to comment.