Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dev-support/ci/selective_ci_checks.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dev-support/ci/selective_ci_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down