-
Notifications
You must be signed in to change notification settings - Fork 3
106 lines (98 loc) · 2.97 KB
/
Copy pathci.yml
File metadata and controls
106 lines (98 loc) · 2.97 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: CI
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
# Least-privilege at workflow level: no job in this file needs write access.
# Individual jobs can opt up if/when needed.
permissions:
contents: read
# Split CI into parallel jobs so a single failure point gets fast feedback
# instead of waiting for the whole serial pipeline.
jobs:
typecheck:
name: TypeScript (tsc --noEmit)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: mcp-server/package-lock.json
- name: Install mcp-server deps
run: cd mcp-server && npm ci
- name: Type-check
run: cd mcp-server && node node_modules/typescript/bin/tsc --noEmit
test-mcp:
name: vitest (mcp-server)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: mcp-server/package-lock.json
- name: Install and test mcp-server
run: cd mcp-server && npm ci && npm test
test-mock:
name: vitest (mock-server)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: mock-server/package-lock.json
- name: Install and test mock-server
run: cd mock-server && npm ci && npm test
validate:
name: validate.sh (file/frontmatter/version checks)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run validate.sh
run: bash scripts/validate.sh
patterns:
name: solc compile patterns/*.md
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: mcp-server/package-lock.json
- name: Install mcp-server deps (solc + @openzeppelin/*)
run: cd mcp-server && npm ci
- name: Compile every Solidity block under patterns/
run: node scripts/check-patterns.mjs
boot-smoke:
name: MCP server boot smoke (tools/list)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: mcp-server/package-lock.json
- name: Build mcp-server
run: cd mcp-server && npm ci && npm run build
- name: Spawn server and assert tools/list response
run: node scripts/mcp-boot-smoke.mjs