Skip to content

Commit 475e457

Browse files
committed
Set up tests to only run when merging to release branch and change the cron to run daily
1 parent 9255b73 commit 475e457

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/run-all-unit-tests-linux.yaml renamed to .github/workflows/run-all-tests-cron-linux.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Test all on Demand (Linux)
4+
name: Test all cron (Linux)
55

66
on:
7-
push:
8-
# schedule:
9-
# - cron: '0 0 * * 0' # Every Sunday at midnight UTC
7+
pull_request:
8+
branches:
9+
- release
10+
schedule:
11+
- cron: '0 0 * * *' # Every day at midnight UTC
1012
workflow_dispatch:
1113

1214
jobs:

.github/workflows/run-all-unit-tests-macos.yaml renamed to .github/workflows/run-all-tests-cron-macos.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Test all on Demand (MacOS)
4+
name: Test all cron (MacOS)
55

66
on:
7-
push:
8-
# schedule:
9-
# - cron: '0 0 * * 0' # Every Sunday at midnight UTC
7+
pull_request:
8+
branches:
9+
- release
10+
schedule:
11+
- cron: '0 0 * * *' # Every day at midnight UTC
1012
workflow_dispatch:
1113

1214
jobs:

0 commit comments

Comments
 (0)