Skip to content

Commit a5f1c17

Browse files
committed
feat: experiment
1 parent 01873e3 commit a5f1c17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/terraform_test_all.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727
if [[ "${SHARED_CHANGED:-false}" == "true" ]]; then
2828
echo "==> Shared infrastructure changed"
2929
echo "==> Running all tests for safety"
30-
mapfile -t test_dirs < <(find . -type f -name "*.tftest.hcl" -print0 | xargs -0 -I{} dirname {} | sort -u)
30+
mapfile -t test_dirs < <(find . -not -path '*/.terraform/*' -type f -name "*.tftest.hcl" -print0 | xargs -0 -I{} dirname {} | sort -u)
3131
elif [[ -z "${MODULE_CHANGED_FILES:-}" ]]; then
3232
echo "✓ No module files changed, skipping tests"
3333
exit 0
@@ -70,7 +70,7 @@ else
7070
if [[ ! " ${test_dirs[*]} " =~ " $test_dir " ]]; then
7171
test_dirs+=("$test_dir")
7272
fi
73-
done < <(find "$module_dir" -type f -name "*.tftest.hcl")
73+
done < <(find "$module_dir" -not -path '*/.terraform/*' -type f -name "*.tftest.hcl")
7474
done
7575
fi
7676

0 commit comments

Comments
 (0)