Skip to content

Commit

Permalink
Workflow propagation (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Apr 29, 2024
1 parent 39c77b6 commit 503373a
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ coverage.*
_pkgdown.yaml
^design$
^pkgdown$
^.revdeprefs\.yaml$
^revdep$
^\.covrignore$
2 changes: 2 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
with:
auto-update: true
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
permissions:
contents: write
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 @@ -27,15 +27,6 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
name: Build package 🎁
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skip-r-cmd-check: true
skip-r-cmd-install: true
docs:
name: Pkgdown Docs 📚
needs: release
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ vignettes/*.html
vignettes/*.md
vignettes/*.R
coverage.*
tests/testthat/_snaps/**/*.new.md
tests/testthat/_snaps/**/*.new.svg
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ repos:
(.*/|)\.Rbuildignore|
(.*/|)\.lintr|
(.*/|)_pkgdown.y[a]?ml|
(.*/|)\.covrignore|
(.*/|)staged_dependencies.y[a]?ml|
(.*/|)\.pre-commit-.*|
\.github/.*|
Expand Down
7 changes: 7 additions & 0 deletions revdep/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
checks
library
checks.noindex
library.noindex
cloud.noindex
data.sqlite
*.html

0 comments on commit 503373a

Please sign in to comment.