Repository navigation
86 lines (67 loc) · 1.92 KB
/
Copy pathci.yml
File metadata and controls
86 lines (67 loc) · 1.92 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
mcp:
runs-on: ubuntu-latest
defaults:
run:
working-directory: mcp
steps:
- uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: .node-version
cache: npm
cache-dependency-path: mcp/package-lock.json
- name: Install MCP dependencies
run: npm ci
- name: Audit MCP dependencies
run: npm audit
- name: Generate MCP data and type-check
run: npm run build:data && npm run typecheck
- name: Test MCP protocol
run: npm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: .node-version
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint (ESLint)
run: npm run lint
- name: Format check (Prettier)
run: npm run format:check
# The hand-maintained discovery files drift silently otherwise: SKILL.md's
# page count / category list / MCP revision against the repo, and both
# files' pinned integrity (sha256 digest, detached JWS). Neither needs a
# private key — they only verify what's committed.
- name: Agent Skill drift check
run: npm run check:skill
- name: Test adoption query
run: npm run test:adoption
- name: Type-check (Astro)
run: npx astro check
- name: Build
run: npm run build
env:
NODE_ENV: production
- name: Test generated WebMCP tools
run: npm run test:webmcp
- name: Upload build artefact
uses: actions/upload-artifact@v7
with:
name: dist
path: dist
retention-days: 7