From b908da1c25e0e84ea47544754e01b5b16a4c0ae7 Mon Sep 17 00:00:00 2001 From: Ryan Fox-Tyler <60440289+ryanfoxtyler@users.noreply.github.com> Date: Thu, 14 Mar 2024 07:08:31 -0400 Subject: [PATCH] Optimize CI Workflows to remove redundant runs (#9052) --- .github/workflows/ci-dgraph-load-tests.yml | 18 ++++++------------ .github/workflows/ci-dgraph-tests.yml | 18 ++++++------------ .github/workflows/ci-dgraph-upgrade-tests.yml | 2 -- .github/workflows/ci-golang-lint.yml | 18 ++++++------------ 4 files changed, 18 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci-dgraph-load-tests.yml b/.github/workflows/ci-dgraph-load-tests.yml index e94d903cd5d..ca984188ca0 100644 --- a/.github/workflows/ci-dgraph-load-tests.yml +++ b/.github/workflows/ci-dgraph-load-tests.yml @@ -1,6 +1,11 @@ name: ci-dgraph-load-tests on: - push: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review paths-ignore: - '.github/CODEOWNERS' - '.vscode/**' @@ -22,17 +27,6 @@ on: branches: - main - 'release/**' - pull_request: - types: - - opened - - reopened - - synchronize - - ready_for_review - branches: - - main - - 'release/**' - schedule: - - cron: "0 0 * * *" # 1 run per day jobs: dgraph-load-tests: if: github.event.pull_request.draft == false diff --git a/.github/workflows/ci-dgraph-tests.yml b/.github/workflows/ci-dgraph-tests.yml index 1cc7530e93b..556fa2eb22f 100644 --- a/.github/workflows/ci-dgraph-tests.yml +++ b/.github/workflows/ci-dgraph-tests.yml @@ -1,6 +1,11 @@ name: ci-dgraph-tests on: - push: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review paths-ignore: - '.github/CODEOWNERS' - '.vscode/**' @@ -22,17 +27,6 @@ on: branches: - main - 'release/**' - pull_request: - types: - - opened - - reopened - - synchronize - - ready_for_review - branches: - - main - - 'release/**' - schedule: - - cron: "0 0 * * *" # 1 run per day jobs: dgraph-tests: if: github.event.pull_request.draft == false diff --git a/.github/workflows/ci-dgraph-upgrade-tests.yml b/.github/workflows/ci-dgraph-upgrade-tests.yml index a035e8f02e9..acd4013520a 100644 --- a/.github/workflows/ci-dgraph-upgrade-tests.yml +++ b/.github/workflows/ci-dgraph-upgrade-tests.yml @@ -10,8 +10,6 @@ on: - reopened - synchronize - ready_for_review - schedule: - - cron: "0 0 * * *" # 1 run per day jobs: dgraph-upgrade-tests: if: github.event.pull_request.draft == false diff --git a/.github/workflows/ci-golang-lint.yml b/.github/workflows/ci-golang-lint.yml index 495c4234522..da68c620eca 100644 --- a/.github/workflows/ci-golang-lint.yml +++ b/.github/workflows/ci-golang-lint.yml @@ -1,6 +1,11 @@ name: ci-golang-lint on: - push: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review paths-ignore: - '.github/CODEOWNERS' - '.vscode/**' @@ -22,17 +27,6 @@ on: branches: - main - 'release/**' - pull_request: - types: - - opened - - reopened - - synchronize - - ready_for_review - branches: - - main - - 'release/**' - schedule: - - cron: "0 0 * * *" jobs: golang-lint: if: github.event.pull_request.draft == false