Repository navigation
62 lines (59 loc) · 2.02 KB
/
Copy pathcontrol-api-tests.yml
File metadata and controls
62 lines (59 loc) · 2.02 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
name: Control API and dashboard checks
on:
pull_request:
paths:
- "workers/control-api/**"
- "workers/mcp-server/**"
- "index.html"
- "scripts/check-control-center.mjs"
- "scripts/check-pages-theme.mjs"
- "scripts/check-accessibility.mjs"
- "scripts/check-doc-links.mjs"
- "scripts/check-mcp-staging.mjs"
- "scripts/check-control-api-staging.mjs"
- "ocodejs-pages-theme.css"
- "docs/**"
- "README.md"
- ".github/workflows/control-api-tests.yml"
push:
branches: [main]
paths:
- "workers/control-api/**"
- "workers/mcp-server/**"
- "index.html"
- "scripts/check-control-center.mjs"
- "scripts/check-pages-theme.mjs"
- "scripts/check-accessibility.mjs"
- "scripts/check-doc-links.mjs"
- "ocodejs-pages-theme.css"
- "docs/**"
- "README.md"
- ".github/workflows/control-api-tests.yml"
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Run Control API tests
run: node --test workers/control-api/worker.test.mjs workers/control-api/telemetry.test.mjs
- name: Run MCP server tests
run: node --test workers/mcp-server/worker.test.mjs
- name: Validate Control Center JavaScript
run: node scripts/check-control-center.mjs
- name: Validate OCode.js Pages theme
run: node scripts/check-pages-theme.mjs
- name: Validate static accessibility requirements
run: node scripts/check-accessibility.mjs
- name: Validate local Markdown links
run: node scripts/check-doc-links.mjs
- name: Verify external staging MCP handshake and read-only tool list
run: node scripts/check-mcp-staging.mjs
- name: Smoke test deployed Control API staging and custom-domain CORS
run: node scripts/check-control-api-staging.mjs