Skip to content

Commit e061aa4

Browse files
authored
impl: fix failing samples presubmit by skipping packages without samples/package.json (#7820)
1 parent c156f91 commit e061aa4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ci/run_conditional_tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ for subdir in ${subdirs[@]}; do
104104
echo "Skipping ${d} (no package.json found)"
105105
continue
106106
fi
107+
if [[ "${TEST_TYPE}" == "samples" && ! -f "${d}/samples/package.json" ]]; then
108+
echo "Skipping ${TEST_TYPE} test for ${d} (no samples/package.json found)"
109+
continue
110+
fi
107111
if [[ ("${subdir}" == "handwritten" || "${subdir}" == "core") && ("${TEST_TYPE}" == "samples" || "${TEST_TYPE}" == "system") ]]; then
108112
echo "Skipping ${TEST_TYPE} test for handwritten and core packages: ${d}"
109113
continue

0 commit comments

Comments
 (0)