From be8c251d331c93f85f9f9b1d2592e3e95e64ec5e Mon Sep 17 00:00:00 2001 From: George Joseph Date: Wed, 18 Sep 2024 11:09:13 -0600 Subject: [PATCH] .github: Add WeeklyTests and make Nightlies Monday-Saturday ...and add "realtime" option. --- .github/workflows/NightlyTests.yml | 8 +++++++- .github/workflows/WeeklyTests.yml | 31 ++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/WeeklyTests.yml diff --git a/.github/workflows/NightlyTests.yml b/.github/workflows/NightlyTests.yml index 4353867c0c..ca716115d4 100644 --- a/.github/workflows/NightlyTests.yml +++ b/.github/workflows/NightlyTests.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/WeeklyTests.yml b/.github/workflows/WeeklyTests.yml new file mode 100644 index 0000000000..b5ca51b1b0 --- /dev/null +++ b/.github/workflows/WeeklyTests.yml @@ -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 + with: + branches: ${{ inputs.branches || vars.NIGHTLYTEST_BRANCHES }} + group_list: ${{ inputs.group_list || vars.NIGHTLYTEST_LIST }} + realtime: ${{ inputs.realtime }} + secrets: + TOKEN: ${{ secrets.GITHUB_TOKEN }} -- 2.47.2