Skip to content

Commit 5426826

Browse files
committed
Add scheduled job for unit tests.
1 parent 120b9e0 commit 5426826

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-and-run-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Run unit tests
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
schedule:
7+
- cron: '0 0 * * 1' # Trigger every Monday at midnight (UTC)
38
concurrency:
49
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
510
cancel-in-progress: true
@@ -36,3 +41,4 @@ jobs:
3641
- name: Run unit tests
3742
run: |
3843
sh run_tests.sh
44+
if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main')

0 commit comments

Comments
 (0)