From d5d69f307e8b8e006ce0b03fb31e57ca5ff96ba9 Mon Sep 17 00:00:00 2001 From: Ritvik Kapila <61410899+RitvikKapila@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:27:08 -0700 Subject: [PATCH] chore(CI): Added github workflows for daily CI (#843) --- .github/workflows/ci-unit-tests.yaml | 2 +- .github/workflows/daily_ci.yaml | 10 ++++++++++ .github/workflows/pull.yaml | 9 +++++++++ .github/workflows/push.yaml | 11 +++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/daily_ci.yaml create mode 100644 .github/workflows/pull.yaml create mode 100644 .github/workflows/push.yaml diff --git a/.github/workflows/ci-unit-tests.yaml b/.github/workflows/ci-unit-tests.yaml index dc28dc21..8f0d7581 100644 --- a/.github/workflows/ci-unit-tests.yaml +++ b/.github/workflows/ci-unit-tests.yaml @@ -1,6 +1,6 @@ name: Unit tests -on: [pull_request] +on: workflow_call jobs: ci-unit-tests: diff --git a/.github/workflows/daily_ci.yaml b/.github/workflows/daily_ci.yaml new file mode 100644 index 00000000..c52f16de --- /dev/null +++ b/.github/workflows/daily_ci.yaml @@ -0,0 +1,10 @@ +# This workflow runs every weekday at 15:00 UTC (8AM PDT) +name: Daily CI + +on: + schedule: + - cron: "00 15 * * 1-5" + +jobs: + daily-ci-js-helpers: + uses: ./.github/workflows/ci-unit-tests.yaml \ No newline at end of file diff --git a/.github/workflows/pull.yaml b/.github/workflows/pull.yaml new file mode 100644 index 00000000..266509cb --- /dev/null +++ b/.github/workflows/pull.yaml @@ -0,0 +1,9 @@ +# This workflow runs for every pull request +name: PR CI + +on: + pull_request: + +jobs: + pr-ci-js-helpers-test: + uses: ./.github/workflows/ci-unit-tests.yaml \ No newline at end of file diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 00000000..ed7d8b55 --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,11 @@ +# This workflow runs for every push to master +name: Push CI + +on: + push: + branches: + - master + +jobs: + push-ci-js-helpers-test: + uses: ./.github/workflows/ci-unit-tests.yaml \ No newline at end of file