Intelligence, Advanced Charting & Trading Platform
ci(paper): run portfolio restore, quote-guard and risk-engine regression suites
davoodmehraban89 committed
Oct 14, 2026 at 23:53 UTC
7b08bf50125d371b9437f8dc8b315f46a8379cf9
1 file changed
+2
-2
.github/workflows/paper-trading-ci.yml
+2
-2
@@ -17,11 +17,11 @@ jobs:
17
with:
18
node-version: '22'
19
- name: Verify paper position unit tests
20
- run: node --test packages/market-domain/test/paper-position.test.mjs
20
+ run: node --test packages/market-domain/test/paper-*.test.mjs
21
- name: Guard pure module against broker/network imports
22
shell: bash
23
run: |
24
- if grep -Ein '(from|import).*([@/](ccxt|broker|exchange|trading|ethers|web3)|node:(http|https|net|child_process))|\b(fetch|WebSocket|XMLHttpRequest|placeOrder|submitOrder|executeOrder)\s*\(' packages/market-domain/src/paper-position.mjs; then
24
+ if grep -Ein '(from|import).*([@/](ccxt|broker|exchange|trading|ethers|web3)|node:(http|https|net|child_process))|\b(fetch|WebSocket|XMLHttpRequest|placeOrder|submitOrder|executeOrder)\s*\(' packages/market-domain/src/paper-position.mjs packages/market-domain/src/paper-workspace.mjs packages/market-domain/src/paper-quote-guard.mjs; then
25
echo "Paper-position module unexpectedly calls networking/broker APIs." >&2
26
exit 1
27
fi