Repository navigation
57 lines (53 loc) · 1.79 KB
/
Copy pathci.yml
File metadata and controls
57 lines (53 loc) · 1.79 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
name: ci
on:
push:
branches: [main, staging]
pull_request:
branches: [main, staging]
# Single-plugin repo (no plugins/ subdir, unlike claude-code-lua-plugin which is
# a marketplace catalog). Working directory is the repo root.
#
# Cross-platform matrix because the plugin must work on macOS, Linux, and
# Windows — the same coverage as the Claude Code plugin (Node ESM hooks,
# AbortSignal.timeout, path handling all need verification per cell).
jobs:
plugin:
strategy:
fail-fast: false
matrix:
os: [macos-14, ubuntu-22.04, windows-2022]
node: [18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm test -- --coverage
- run: node scripts/check-coverage.mjs
- if: matrix.os == 'ubuntu-22.04' && matrix.node == '20'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: coverage
path: coverage/
retention-days: 7
mcp:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20
- name: Install MCP deps
working-directory: mcp/lua-platform
run: npm ci
- name: Test MCP
working-directory: mcp/lua-platform
run: npm test
- name: Build MCP bundle
working-directory: mcp/lua-platform
run: npm run build
- name: Verify bundle size
run: node scripts/check-bundle-size.mjs