Skip to content

Commit

Permalink
.github: Add WeeklyTests and make Nightlies Monday-Saturday
Browse files Browse the repository at this point in the history
...and add "realtime" option.
  • Loading branch information
gtjoseph committed Sep 18, 2024
1 parent 7f27761 commit d1b5b1f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/NightlyTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ on:
required: false
type: string
description: "Array of test groups to run: ['ari1','channels']. Defaults to NIGHTLYTEST_LIST"
realtime:
type: boolean
required: false
default: false

schedule:
- cron: '0 2 * * *'
# Monday-Saturday 2am
- cron: '0 2 * * 1-6'

jobs:
NightlyTests:
Expand All @@ -21,5 +26,6 @@ jobs:
with:
branches: ${{ inputs.branches || vars.NIGHTLYTEST_BRANCHES }}
group_list: ${{ inputs.group_list || vars.NIGHTLYTEST_LIST }}
realtime: ${{ inputs.realtime }}
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/WeeklyTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: WeeklyTests
on:
workflow_dispatch:
inputs:
branches:
required: false
type: string
description: "Array of branches to run: ['21','master']. Defaults to NIGHTLYTEST_BRANCHES"
group_list:
required: false
type: string
description: "Array of test groups to run: ['ari1','channels']. Defaults to NIGHTLYTEST_LIST"
realtime:
type: boolean
required: false
default: true

schedule:
# Sunday 2am
- cron: '0 2 * * 0'

jobs:
WeeklyTests:
name: WeeklyTests
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskNightlyTest.yml@main-nightly-realtime
with:
branches: ${{ inputs.branches || vars.NIGHTLYTEST_BRANCHES }}
group_list: ${{ inputs.group_list || vars.NIGHTLYTEST_LIST }}
realtime: ${{ inputs.realtime }}
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d1b5b1f

Please sign in to comment.