Files
simplex-chat/scripts/ci/scope-tests.sh
T
sh-agentsandsh-agents 26f98c76b9 support bot: /feed sends a message to all chats (#8138)
* support bot: /feed sends a message to all chats

* ci: test the support bot with the library of the branch

---------

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

51 lines
1.7 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 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 apps/simplex-support-bot
npm ci --no-audit --no-fund
npm install --no-save --no-audit --no-fund ../../packages/simplex-chat-nodejs ../../packages/simplex-chat-client/types/typescript
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