Repository navigation
78 lines (73 loc) · 2.5 KB
/
Copy pathopenclaw-plugin.yml
File metadata and controls
78 lines (73 loc) · 2.5 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
name: OpenClaw plugin
on:
pull_request:
paths:
- reflexio/integrations/openclaw/**
- reflexio/server/llm/providers/openclaw_provider.py
- reflexio/server/routes/**
- reflexio/models/api_schema/**
- reflexio/cli/commands/setup_cmd.py
- .github/workflows/openclaw-plugin.yml
push:
branches: [main]
permissions:
contents: read
env:
NODE_VERSION: "24.22.1"
jobs:
plugin:
strategy:
matrix:
node: ["24.22.1", "26.12.1"]
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: reflexio/integrations/openclaw/plugin
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
cache-dependency-path: reflexio/integrations/openclaw/plugin/package-lock.json
- run: npm ci --no-fund --no-audit
# Typechecks against the real OpenClaw SDK (a pinned devDependency), so
# a host API change fails here instead of at a user's runtime.
- run: npm run typecheck
- run: npm test
# Drives real OpenClaw against a real Reflexio backend through the built SDK
# wheel and its production plugin installer. See reflexio/integrations/openclaw/lab/README.md.
lab:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
# The declared compat.pluginApi floor, plus what users get today and
# what they get next. Dist-tags keep the last two moving with upstream.
openclaw: ["2026.9.33", "latest", "beta"]
env:
OPENCLAW_LAB_VERSION: ${{ matrix.openclaw }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.12"
- run: uv sync
- name: SDK setup and wire contracts
run: uv run --no-sync pytest -o 'addopts=' tests/cli/test_setup_cmd.py tests/integrations/test_openclaw_wire_contract.py
- run: reflexio/integrations/openclaw/lab/lab.sh up
- run: uv run --no-sync python reflexio/integrations/openclaw/lab/scenarios.py
- name: Lab logs
if: failure()
run: tail -n 200 "${TMPDIR:-/tmp}"/reflexio-openclaw-lab/{backend,gateway}.log || true
- if: always()
run: reflexio/integrations/openclaw/lab/lab.sh down