forked from mem9-ai/mem9
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (82 loc) · 2.37 KB
/
Copy pathserver-plugin-checks.yml
File metadata and controls
97 lines (82 loc) · 2.37 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
name: Server and plugin checks
on:
pull_request:
branches: [main]
paths:
- ".github/workflows/server-plugin-checks.yml"
- "Makefile"
- "server/**"
- "openclaw-plugin/**"
- "opencode-plugin/**"
- "claude-plugin/**"
push:
branches: [main]
paths:
- ".github/workflows/server-plugin-checks.yml"
- "Makefile"
- "server/**"
- "openclaw-plugin/**"
- "opencode-plugin/**"
- "claude-plugin/**"
workflow_dispatch:
permissions:
contents: read
jobs:
server-test:
name: Server vet and tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: server/go.mod
cache-dependency-path: server/go.sum
- name: Vet
run: make vet
- name: Test with coverage
run: make test-cover
- name: Print coverage summary
if: always()
run: |
if [ -f server/coverage/coverage.txt ]; then
tail -n 1 server/coverage/coverage.txt
fi
- name: Upload server coverage
if: always()
uses: actions/upload-artifact@v4
with:
name: server-coverage
path: |
server/coverage/coverage.out
server/coverage/coverage.txt
if-no-files-found: warn
retention-days: 14
plugin-typecheck:
name: Plugin typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Typecheck OpenClaw plugin
working-directory: openclaw-plugin
run: |
npm install --no-audit --no-fund
npm run typecheck
- name: Typecheck OpenCode plugin
working-directory: opencode-plugin
run: |
npm install --no-audit --no-fund
npm run typecheck
- name: Check Claude plugin hooks
working-directory: claude-plugin
run: |
bash -n hooks/common.sh hooks/pre-compact.sh hooks/session-end.sh hooks/session-start.sh hooks/stop.sh hooks/user-prompt-submit.sh
node --check hooks/lib/hook-json.mjs
node --check hooks/lib/memories-formatter.mjs
node --check hooks/lib/transcript-parser.mjs