Skip to content

Commit d1b5b1f

Browse files
committed
.github: Add WeeklyTests and make Nightlies Monday-Saturday
...and add "realtime" option.
1 parent 7f27761 commit d1b5b1f

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/NightlyTests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ on:
1010
required: false
1111
type: string
1212
description: "Array of test groups to run: ['ari1','channels']. Defaults to NIGHTLYTEST_LIST"
13+
realtime:
14+
type: boolean
15+
required: false
16+
default: false
1317

1418
schedule:
15-
- cron: '0 2 * * *'
19+
# Monday-Saturday 2am
20+
- cron: '0 2 * * 1-6'
1621

1722
jobs:
1823
NightlyTests:
@@ -21,5 +26,6 @@ jobs:
2126
with:
2227
branches: ${{ inputs.branches || vars.NIGHTLYTEST_BRANCHES }}
2328
group_list: ${{ inputs.group_list || vars.NIGHTLYTEST_LIST }}
29+
realtime: ${{ inputs.realtime }}
2430
secrets:
2531
TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/WeeklyTests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: WeeklyTests
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
branches:
6+
required: false
7+
type: string
8+
description: "Array of branches to run: ['21','master']. Defaults to NIGHTLYTEST_BRANCHES"
9+
group_list:
10+
required: false
11+
type: string
12+
description: "Array of test groups to run: ['ari1','channels']. Defaults to NIGHTLYTEST_LIST"
13+
realtime:
14+
type: boolean
15+
required: false
16+
default: true
17+
18+
schedule:
19+
# Sunday 2am
20+
- cron: '0 2 * * 0'
21+
22+
jobs:
23+
WeeklyTests:
24+
name: WeeklyTests
25+
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskNightlyTest.yml@main-nightly-realtime
26+
with:
27+
branches: ${{ inputs.branches || vars.NIGHTLYTEST_BRANCHES }}
28+
group_list: ${{ inputs.group_list || vars.NIGHTLYTEST_LIST }}
29+
realtime: ${{ inputs.realtime }}
30+
secrets:
31+
TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)