-
Notifications
You must be signed in to change notification settings - Fork 37
35 lines (33 loc) · 1.04 KB
/
Copy pathci.yml
File metadata and controls
35 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
jobs:
test:
name: Test (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Bundle integrity (src/ modules present in gen-context.js __factories)
run: node scripts/check-bundle.mjs
- name: Bundle reproducibility (committed gen-context.js == fresh build from src/)
run: node scripts/build-bundle.mjs --check
- name: Metrics single-source-of-truth (latest.json → version.json + README)
run: npm run check:metrics
- name: Run unit tests
run: node test/run.js
- name: Run Python AST extractor tests
run: npm run test:python
- name: Run integration tests
run: node test/integration/all.js