Files
plezy/scripts/ci_guard_checks.sh
T
2026-08-10 20:28:41 +02:00

31 lines
965 B
Bash

#!/usr/bin/env bash
# Single source of truth for workflow/script guards, shared by CI and
# scripts/ci_checks.sh. Regression tests use a glob so new test_checkers are
# picked up automatically; checkers requiring Bun or built packages run in
# their owning jobs as well.
set -euo pipefail
shopt -s nullglob
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
for checker in \
scripts/check_build_workflow.py \
scripts/check_apple_spm_locks.py \
scripts/check_tvos_test_wiring.py \
scripts/check_shrinker_rules.py \
scripts/verify_runtime_inputs.py \
scripts/check_workflow_security.py \
scripts/check_workflow_action_pins.py \
scripts/check_container_image_pins.py \
scripts/check_update_packages_workflow.py \
scripts/check_linux_package_deps.py \
scripts/check_windows_installer.py \
scripts/check_windows_msix.py; do
python3 "$checker"
done
for guard_test in scripts/test_*.py; do
python3 "$guard_test"
done