Skip to content

Commit

Permalink
Workflow propagation (#232)
Browse files Browse the repository at this point in the history
Propagation of:
* insightsengineering/idr-tasks#355
* insightsengineering/idr-tasks#756
* insightsengineering/idr-tasks#757
* insightsengineering/idr-tasks#712
* insightsengineering/idr-tasks#764

---------

Signed-off-by: cicdguy <26552821+cicdguy@users.noreply.github.com>
Co-authored-by: cicdguy <26552821+cicdguy@users.noreply.github.com>
  • Loading branch information
walkowif and cicdguy committed Apr 29, 2024
1 parent 570fae4 commit 155c1bf
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Expand Up @@ -42,3 +42,6 @@ SECURITY.md
coverage.*
_\.new\.png$
^pkgdown$
^.revdeprefs\.yaml$
^revdep$
^\.covrignore$
27 changes: 26 additions & 1 deletion .github/workflows/check.yaml
Expand Up @@ -27,7 +27,6 @@ jobs:
with:
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
NOT_CRAN=true
TESTING_DEPTH=5
additional-r-cmd-check-params: --as-cran
enforce-note-blocklist: true
Expand All @@ -42,6 +41,30 @@ jobs:
checking top-level files .* NOTE
unit-test-report-brand: >-
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
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
additional-env-vars: |
NOT_CRAN=true
TESTING_DEPTH=5
enforce-note-blocklist: true
publish-unit-test-report-gh-pages: false
junit-xml-comparison: false
concurrency-group: non-cran
disable-unit-test-reports: true
skip-r-cmd-install: 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
coverage:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
Expand Down Expand Up @@ -88,6 +111,8 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
with:
auto-update: true
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
grammar:
if: github.event_name != 'push'
name: Grammar Check 🔤
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/cla.yaml
@@ -0,0 +1,18 @@
name: CLA 🔏

on:
issue_comment:
types:
- created
# For PRs that originate from forks
pull_request_target:
types:
- opened
- closed
- synchronize

jobs:
CLA:
name: CLA 📝
uses: insightsengineering/.github/.github/workflows/cla.yaml@main
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/on-demand.yaml
@@ -0,0 +1,12 @@
---
name: On-demand 🧑‍🔬

on:
schedule:
- cron: '45 3 * * 0'
workflow_dispatch:

jobs:
revdepcheck:
name: revdepcheck ↩️
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
13 changes: 2 additions & 11 deletions .github/workflows/release.yaml
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 Down
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -29,3 +29,5 @@ vignettes/*.html
vignettes/*.md
# {shinytest2}: Ignore new debug snapshots for `$expect_values()`
*_.new.png
tests/testthat/_snaps/**/*.new.md
tests/testthat/_snaps/**/*.new.svg
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Expand Up @@ -45,6 +45,7 @@ repos:
.*\.svg|
.*\.xml|
(.*/|)\_pkgdown.y[a]?ml|
(.*/|)\.covrignore|
(.*/|)\.gitignore|
(.*/|)\.gitlab-ci\.y[a]?ml|
(.*/|)\.lintr|
Expand Down
7 changes: 7 additions & 0 deletions revdep/.gitignore
@@ -0,0 +1,7 @@
checks
library
checks.noindex
library.noindex
cloud.noindex
data.sqlite
*.html

0 comments on commit 155c1bf

Please sign in to comment.