Skip to content

Commit 9708658

Browse files
authored
HDDS-14173. Selective checks: handle change in check.yml (#9499)
1 parent 114d242 commit 9708658

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

dev-support/ci/selective_ci_checks.bats

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,17 @@ load bats-assert/load.bash
309309
assert_output -p needs-kubernetes-tests=false
310310
}
311311

312+
@test "CI workflow change (check.yml)" {
313+
run dev-support/ci/selective_ci_checks.sh 1468af02067ec75b255f605816c32f8bf4dfaabf
314+
315+
assert_output -p 'basic-checks=["author","bats","checkstyle","docs","findbugs","pmd","rat"]'
316+
assert_output -p needs-build=true
317+
assert_output -p needs-compile=true
318+
assert_output -p needs-compose-tests=true
319+
assert_output -p needs-integration-tests=true
320+
assert_output -p needs-kubernetes-tests=true
321+
}
322+
312323
@test "CI workflow change (ci.yaml)" {
313324
run dev-support/ci/selective_ci_checks.sh 90fd5f2adc
314325

dev-support/ci/selective_ci_checks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ function check_if_tests_are_needed_at_all() {
192192
function run_all_tests_if_environment_files_changed() {
193193
start_end::group_start "Check if everything should be run"
194194
local pattern_array=(
195+
"^.github/workflows/check.yml"
195196
"^.github/workflows/ci.yml"
196197
"^.github/workflows/post-commit.yml"
197198
"^dev-support/ci"

0 commit comments

Comments
 (0)