From f10e3972da093f3c9d9e58bcc4f6061ae7028edd Mon Sep 17 00:00:00 2001 From: John Mazanec Date: Tue, 30 Jul 2024 11:50:12 -0400 Subject: [PATCH] Limit tests run based on changed path (#1901) Signed-off-by: John Mazanec --- .github/workflows/CI.yml | 20 +++++++++++++++++++ ...backwards_compatibility_tests_workflow.yml | 20 +++++++++++++++++++ .github/workflows/test_security.yml | 18 +++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e6dec4daf..3e04f3724 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,10 +6,30 @@ on: branches: - "*" - "feature/**" + paths: + - 'build.gradle' + - 'settings.gradle' + - 'src/**' + - 'build-tools/**' + - 'buildSrc/**' + - 'gradle/**' + - 'jni/**' + - 'micro-benchmarks/**' + - '.github/workflows/CI.yml' pull_request: branches: - "*" - "feature/**" + paths: + - 'build.gradle' + - 'settings.gradle' + - 'src/**' + - 'build-tools/**' + - 'buildSrc/**' + - 'gradle/**' + - 'jni/**' + - 'micro-benchmarks/**' + - '.github/workflows/CI.yml' env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true diff --git a/.github/workflows/backwards_compatibility_tests_workflow.yml b/.github/workflows/backwards_compatibility_tests_workflow.yml index b8f7fb14d..5092cd170 100644 --- a/.github/workflows/backwards_compatibility_tests_workflow.yml +++ b/.github/workflows/backwards_compatibility_tests_workflow.yml @@ -4,10 +4,30 @@ on: branches: - "*" - "feature/**" + paths: + - 'build.gradle' + - 'settings.gradle' + - 'src/**' + - 'build-tools/**' + - 'buildSrc/**' + - 'gradle/**' + - 'jni/**' + - 'qa/**' + - '.github/workflows/backwards_compatibility_tests_workflow.yml' pull_request: branches: - "*" - "feature/**" + paths: + - 'build.gradle' + - 'settings.gradle' + - 'src/**' + - 'build-tools/**' + - 'buildSrc/**' + - 'gradle/**' + - 'jni/**' + - 'qa/**' + - '.github/workflows/backwards_compatibility_tests_workflow.yml' jobs: Restart-Upgrade-BWCTests-k-NN: diff --git a/.github/workflows/test_security.yml b/.github/workflows/test_security.yml index 77b726a69..6a0fe72d0 100644 --- a/.github/workflows/test_security.yml +++ b/.github/workflows/test_security.yml @@ -6,10 +6,28 @@ on: branches: - "*" - "feature/**" + paths: + - 'build.gradle' + - 'settings.gradle' + - 'src/**' + - 'build-tools/**' + - 'buildSrc/**' + - 'gradle/**' + - 'jni/**' + - '.github/workflows/test_security.yml' pull_request: branches: - "*" - "feature/**" + paths: + - 'build.gradle' + - 'settings.gradle' + - 'src/**' + - 'build-tools/**' + - 'buildSrc/**' + - 'gradle/**' + - 'jni/**' + - '.github/workflows/test_security.yml' env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true