We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120b9e0 commit 5426826Copy full SHA for 5426826
.github/workflows/build-and-run-tests.yml
@@ -1,5 +1,10 @@
1
name: Run unit tests
2
-on: [push]
+on:
3
+ push:
4
+ branches:
5
+ - '**'
6
+ schedule:
7
+ - cron: '0 0 * * 1' # Trigger every Monday at midnight (UTC)
8
concurrency:
9
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10
cancel-in-progress: true
@@ -36,3 +41,4 @@ jobs:
36
41
- name: Run unit tests
37
42
run: |
38
43
sh run_tests.sh
44
+ if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main')
0 commit comments