diff --git a/dev-support/ci/selective_ci_checks.bats b/dev-support/ci/selective_ci_checks.bats index fa05bceefbdf..ce898f561432 100644 --- a/dev-support/ci/selective_ci_checks.bats +++ b/dev-support/ci/selective_ci_checks.bats @@ -273,6 +273,18 @@ load bats-assert/load.bash assert_output -p needs-kubernetes-tests=true } +@test "CI workflow change (ci.yaml)" { + run dev-support/ci/selective_ci_checks.sh c12d66f06e8e242fd2aa495b39ffb00ed9ff3bfc + + assert_output -p 'basic-checks=["author","bats","checkstyle","docs","findbugs","rat","unit"]' + assert_output -p needs-build=true + assert_output -p needs-compile=true + assert_output -p needs-compose-tests=true + assert_output -p needs-dependency-check=true + assert_output -p needs-integration-tests=true + assert_output -p needs-kubernetes-tests=true +} + @test "root README" { run dev-support/ci/selective_ci_checks.sh 8bbbf3f7d diff --git a/dev-support/ci/selective_ci_checks.sh b/dev-support/ci/selective_ci_checks.sh index bbe50d93c2c5..dd76189b1de4 100755 --- a/dev-support/ci/selective_ci_checks.sh +++ b/dev-support/ci/selective_ci_checks.sh @@ -192,6 +192,7 @@ function check_if_tests_are_needed_at_all() { function run_all_tests_if_environment_files_changed() { start_end::group_start "Check if everything should be run" local pattern_array=( + "^.github/workflows/ci.yml" "^.github/workflows/post-commit.yml" "^dev-support/ci" "^hadoop-ozone/dev-support/checks/_lib.sh"