]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
.github: Add WeeklyTests and make Nightlies Monday-Saturday
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 18 Sep 2024 17:09:13 +0000 (11:09 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 14 Nov 2024 20:01:34 +0000 (20:01 +0000)
...and add "realtime" option.

(cherry picked from commit 60ad3efc9dbf8baeaa0ee238589e0236145197af)

.github/workflows/NightlyTests.yml
.github/workflows/WeeklyTests.yml [new file with mode: 0644]

index 4353867c0ce6ce098597193f5eab523b312f00de..ca716115d4c95ff21961a949b0e4e539d028fcee 100644 (file)
@@ -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 (file)
index 0000000..b5ca51b
--- /dev/null
@@ -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 }}