Files
plezy/scripts/ci_guard_checks.sh
T
edde746 f622ba8efe chore(scripts): group scripts into checks, codegen, maestro and release subdirectories
scripts/ had ~80 flat files. Entry points (ci_*.sh, codegen.sh, run_tests.sh, format_native.sh, setup_hooks.sh, upload-symbols.*) and the shared pubspec_version.py stay at the root; checkers, generators, maestro tooling and release tooling move into subdirectories with their tests. Updated every reference: workflow steps, guard-test glob, Docker COPY paths and .dockerignore whitelist, website audit path, dart test imports, and regenerated the five outputs whose headers embed generator paths.
2026-08-17 01:40:54 +02:00

31 lines
1.0 KiB
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/checks/check_build_workflow.py \
scripts/checks/check_apple_spm_locks.py \
scripts/checks/check_tvos_test_wiring.py \
scripts/checks/check_shrinker_rules.py \
scripts/checks/verify_runtime_inputs.py \
scripts/checks/check_workflow_security.py \
scripts/checks/check_workflow_action_pins.py \
scripts/checks/check_container_image_pins.py \
scripts/checks/check_update_packages_workflow.py \
scripts/checks/check_linux_package_deps.py \
scripts/checks/check_windows_installer.py \
scripts/checks/check_windows_msix.py; do
python3 "$checker"
done
for guard_test in scripts/test_*.py scripts/*/test_*.py; do
python3 "$guard_test"
done