Scheduled 🕰️ #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Scheduled 🕰️ | |
on: | |
schedule: | |
- cron: '45 3 * * 0' | |
workflow_dispatch: | |
inputs: | |
chosen-workflow: | |
description: | | |
Select which workflow you'd like to run | |
required: true | |
type: choice | |
default: rhub | |
options: | |
- rhub | |
- dependency-test | |
- branch-cleanup | |
- revdepcheck | |
jobs: | |
dependency-test: | |
if: > | |
github.event_name == 'schedule' || ( | |
github.event_name == 'workflow_dispatch' && | |
inputs.chosen-workflow == 'dependency-test' | |
) | |
strategy: | |
fail-fast: false | |
matrix: | |
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: | |
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
GCHAT_WEBHOOK: ${{ secrets.GCHAT_WEBHOOK }} | |
with: | |
strategy: ${{ matrix.test-strategy }} | |
additional-env-vars: | | |
PKG_SYSREQS_DRY_RUN=true | |
extra-deps: | | |
lme4 (>= 1.1-35) | |
branch-cleanup: | |
if: > | |
github.event_name == 'schedule' || ( | |
github.event_name == 'workflow_dispatch' && | |
inputs.chosen-workflow == 'branch-cleanup' | |
) | |
name: Branch Cleanup 🧹 | |
uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main | |
secrets: | |
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
cran-status: | |
name: CRAN Status Monitor 📺 | |
uses: insightsengineering/r.pkg.template/.github/workflows/cran-status.yaml@main | |
with: | |
issue-assignees: "shajoezhu,Melkiades,edelarua,gmbecker,ayogasekaram" | |
revdepcheck: | |
if: > | |
github.event_name == 'schedule' || ( | |
github.event_name == 'workflow_dispatch' && | |
inputs.chosen-workflow == 'revdepcheck' | |
) | |
name: revdepcheck ↩️ | |
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main | |
rhub: | |
if: > | |
github.event_name == 'schedule' || ( | |
github.event_name == 'workflow_dispatch' && | |
inputs.chosen-workflow == 'rhub' | |
) | |
name: R-hub 🌐 | |
uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main | |
with: | |
lookup-refs: | | |
insightsengineering/rtables | |
insightsengineering/formatters |