Repository navigation
104 lines (90 loc) · 3.13 KB
/
Copy pathci.yml
File metadata and controls
104 lines (90 loc) · 3.13 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [22, 24]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Test
run: npm test
- name: Execution and recovery regressions
run: npm run test:focused
- name: Compiler parity
run: npm run verify:typescript
- name: Packed consumer and compiled grant CLI
run: npm run test:package && npm run test:work-cli
native-hosts:
runs-on: ubuntu-latest
strategy:
matrix:
node: [22, 24]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run build
- name: Install pinned native plugin SDKs
run: |
npm ci --ignore-scripts --prefix plugins/openclaw-execufunction
npm ci --ignore-scripts --prefix plugins/openclaw-openfunctions
npm ci --ignore-scripts --prefix plugins/pi-openfunctions
- name: Real SDK types manifests loaders and bounded work
run: npm run test:hosts
hermes:
runs-on: ubuntu-latest
strategy:
matrix:
node: [22, 24]
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: NousResearch/hermes-agent
ref: 7cc3fb8cb55898747dd1dfa56fda3e16ebba028e
path: .host-fixtures/hermes-agent
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- run: npm ci
- name: Provision the official managed Hermes interpreter
run: |
node test-client/provision-hermes-runtime.mjs --hermes-root "$GITHUB_WORKSPACE/.host-fixtures/hermes-agent" --runtime-dir "$RUNNER_TEMP/hermes-runtime" --data-dir "$RUNNER_TEMP/hermes-provision-home" --out "$RUNNER_TEMP/hermes-runtime.json"
- name: Real portable host grants execution and crash recovery
run: |
HERMES_TEST_PYTHON=$(node -e 'process.stdout.write(JSON.parse(require("fs").readFileSync(process.argv[1],"utf8")).python)' "$RUNNER_TEMP/hermes-runtime.json")
npm run test:hermes -- --hermes-root "$GITHUB_WORKSPACE/.host-fixtures/hermes-agent" --python "$HERMES_TEST_PYTHON" --runtime-dir "$RUNNER_TEMP/hermes-runtime" --mode work --install-mode online --out "$RUNNER_TEMP/hermes-evidence"
- name: Retain host evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: hermes-node-${{ matrix.node }}
path: |
${{ runner.temp }}/hermes-runtime.json
${{ runner.temp }}/hermes-evidence
if-no-files-found: warn