Files
simplex-chat/scripts/ci/scope-tests.sh
T
sh-agentsandsh-agents 158338e5d0 support bot light: dry run with migration checks and rollback (#8147)
* support bot light: check config and database with --dry-run

* ci: test the light support bot

---------

Co-authored-by: sh-agents <350651734+sh-agents@users.noreply.github.com>
2026-11-12 14:16:33 +00:00

45 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/../.."
case "${1:-}" in
badge-web)
(cd apps/simplex-badge-service/web && npm ci && npm test)
;;
ci-scripts)
python3 scripts/ci/test_packages_release.py
;;
website)
(cd website && npm test)
;;
mcp)
(cd packages/simplex-chat-client/types/typescript && npm install --no-audit --no-fund && npx tsc)
(cd packages/simplex-chat-nodejs && npm install --ignore-scripts --no-save --no-audit --no-fund ../simplex-chat-client/types/typescript && npx tsc && cp src/simplex.* dist)
cd packages/simplex-chat-mcp
npm ci --no-audit --no-fund
npm install --no-save --no-audit --no-fund ../simplex-chat-nodejs ../simplex-chat-client/types/typescript
npx tsc
npx tsc -p test/tsconfig.json --noEmit
npm test
npm run test:e2e
;;
support-bot)
(cd apps/simplex-support-bot && npm ci --no-audit --no-fund && npm run build && npm test)
;;
support-bot-light)
cd apps/simplex-support-bot-light
python3 -m venv .venv
.venv/bin/pip install -e ../../packages/simplex-chat-python -e '.[dev]'
.venv/bin/ruff check
.venv/bin/ruff format --check src tests
.venv/bin/pyright
.venv/bin/pytest tests
;;
*)
echo "usage: $0 badge-web | ci-scripts | website | mcp | support-bot | support-bot-light" >&2
exit 1
;;
esac