Files
Gabriel20xx 22887fef03 ci: expand CI checks and make consumer sync opt-in
- Add Go, npm, Python, and Java validation to CI
- Run Go tests against PostgreSQL
- Record performance fixes in the report
2026-10-19 21:14:31 +00:00

21 lines
725 B
Bash
Executable File

#!/bin/sh
set -euo pipefail
# Consumer synchronization is opt-in. It commits into every registered consumer repository, so it
# runs only for a commit made with SHARED_SYNC_COMMIT=1 in the environment.
if [ "${SHARED_SYNC_COMMIT:-0}" != "1" ]; then
exit 0
fi
repo_root="$(git rev-parse --show-toplevel)"
sync_script="$repo_root/scripts/sync-consumers.ps1"
if command -v pwsh >/dev/null 2>&1; then
pwsh -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$sync_script" -Commit
elif command -v powershell.exe >/dev/null 2>&1; then
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$sync_script" -Commit
else
echo "shared synchronization requires pwsh or powershell.exe." >&2
exit 1
fi