Intelligence, Advanced Charting & Trading Platform

1 name: ChartNova light catalog and lazy history CI
2 on:
3 pull_request:
4 paths:
5 - 'packages/market-domain/src/market-catalog-summary.mjs'
6 - 'packages/market-domain/test/market-catalog-summary.test.mjs'
7 - 'scripts/patch-chartnova-v26-light-catalog.mjs'
8 - 'scripts/patch-chartnova-v26-light-catalog.test.mjs'
9 - 'scripts/test-chartnova-live-html-simulator.mjs'
10 - '.github/workflows/chartnova-light-catalog.yml'
11 workflow_dispatch:
12 permissions:
13 contents: read
14 jobs:
15 light-market:
16 runs-on: ubuntu-latest
17 timeout-minutes: 5
18 steps:
19 - uses: actions/checkout@v4
20 - uses: actions/setup-node@v4
21 with:
22 node-version: '22'
23 - name: Validate compact market catalog contract
24 run: node --test packages/market-domain/test/market-catalog-summary.test.mjs
25 - name: Validate fail-closed v26 source integration and API compatibility
26 run: node --test scripts/patch-chartnova-v26-light-catalog.test.mjs
27 - name: Block real-trade and external-network dependencies
28 shell: bash
29 run: |
30 if grep -En 'from ["\x27](http|ws)|import\(["\x27](http|ws)|placeOrder|executeTrade|brokerApi|apiKey' packages/market-domain/src/market-catalog-summary.mjs scripts/patch-chartnova-v26-light-catalog.mjs; then
31 echo 'Unexpected external dependency or trading action in lightweight market integration'
32 exit 1
33 fi
34 - name: Install isolated Chromium for real-HTML integration test
35 run: |
36 npm install --no-save --ignore-scripts --no-audit --no-fund playwright@1.58.2
37 npx playwright install --with-deps chromium webkit
38 - name: Simulate compact and lazy catalog against actual deployed v26 HTML (no deploy)
39 run: node scripts/test-chartnova-live-html-simulator.mjs