-
-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (70 loc) · 2.29 KB
/
core-ci.yml
File metadata and controls
84 lines (70 loc) · 2.29 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: "MCP Server CI"
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'src/core/**'
- 'src/node/**'
- 'package.json'
- '.github/workflows/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Configure git
run: git config --global init.defaultBranch master
- uses: actions/checkout@v4
- name: Set node version
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install
run: |
npm install
npm run setheapsize
- name: Update browserslist database
run: npx update-browserslist-db@latest
# We need to patch the node_modules for Node 22 compatibility here as well
# because npm install might overwrite them or they might not be patched in the repo
- name: Patch Dependencies for Node 22
run: |
sed -i 's/new SlowBuffer/Buffer.alloc/g' node_modules/avsc/lib/types.js
sed -i 's/SlowBuffer/Buffer/g' node_modules/buffer-equal-constant-time/index.js
- name: Lint
run: npx grunt lint
- name: Config Tests (Generate Configs)
run: npx grunt configTests
- name: Unit Tests
run: |
npm test
npm run testnodeconsumer
# Codecov Integration: Coverage Analytics + Test Analytics
- name: MCP Tests with Coverage
run: npm run test:coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v5
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: mcp-tests
name: codecov-mcp-coverage
fail_ci_if_error: false
verbose: true
- name: Upload Test Results to Codecov
uses: codecov/codecov-action@v5
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
report_type: test_results
files: ./test-results/junit.xml
flags: mcp-tests
name: codecov-test-results
fail_ci_if_error: false
# NOTE: Web UI production build (npx grunt prod) removed in v1.7.1
# This fork focuses on the MCP server implementation. The web UI files
# (src/web/) and related build infrastructure were removed as they are
# not needed for MCP server functionality. The production build step
# required those deleted web UI files and would fail.