Skip to content

Commit 68863e8

Browse files
authored
Add scheduled CI tests (#333)
1 parent 7a5a015 commit 68863e8

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/scheduled.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
name: Scheduled 🕰️
3+
4+
on:
5+
schedule:
6+
- cron: '45 3 * * 0'
7+
workflow_dispatch:
8+
inputs:
9+
chosen-workflow:
10+
description: |
11+
Select which workflow you'd like to run
12+
required: true
13+
type: choice
14+
default: rhub
15+
options:
16+
- rhub
17+
- dependency-test
18+
- branch-cleanup
19+
- revdepcheck
20+
21+
jobs:
22+
dependency-test:
23+
if: >
24+
github.event_name == 'schedule' || (
25+
github.event_name == 'workflow_dispatch' &&
26+
inputs.chosen-workflow == 'dependency-test'
27+
)
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
test-strategy: ["min_cohort", "min_isolated", "release", "max"]
32+
uses: insightsengineering/r.pkg.template/.github/workflows/verdepcheck.yaml@main
33+
name: Dependency Test - ${{ matrix.test-strategy }} 🔢
34+
secrets:
35+
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
36+
GCHAT_WEBHOOK: ${{ secrets.GCHAT_WEBHOOK }}
37+
with:
38+
strategy: ${{ matrix.test-strategy }}
39+
additional-env-vars: |
40+
PKG_SYSREQS_DRY_RUN=true
41+
branch-cleanup:
42+
if: >
43+
github.event_name == 'schedule' || (
44+
github.event_name == 'workflow_dispatch' &&
45+
inputs.chosen-workflow == 'branch-cleanup'
46+
)
47+
name: Branch Cleanup 🧹
48+
uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main
49+
secrets:
50+
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
51+
revdepcheck:
52+
if: >
53+
github.event_name == 'schedule' || (
54+
github.event_name == 'workflow_dispatch' &&
55+
inputs.chosen-workflow == 'revdepcheck'
56+
)
57+
name: revdepcheck ↩️
58+
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
59+
60+
rhub:
61+
if: >
62+
github.event_name == 'schedule' || (
63+
github.event_name == 'workflow_dispatch' &&
64+
inputs.chosen-workflow == 'rhub'
65+
)
66+
name: R-hub 🌐
67+
uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main
68+

0 commit comments

Comments
 (0)