-
Notifications
You must be signed in to change notification settings - Fork 701
40 lines (33 loc) · 970 Bytes
/
ci.yml
File metadata and controls
40 lines (33 loc) · 970 Bytes
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
name: CI
on:
push:
pull_request:
jobs:
version-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check version consistency
run: |
pkg_ver=$(node -p "JSON.parse(require('fs').readFileSync('package.json','utf8')).version")
plugin_ver=$(node -p "JSON.parse(require('fs').readFileSync('openclaw.plugin.json','utf8')).version")
if [ "$pkg_ver" != "$plugin_ver" ]; then
echo "::error::Version mismatch: package.json=$pkg_ver, openclaw.plugin.json=$plugin_ver"
exit 1
fi
echo "Versions match: $pkg_ver"
cli-smoke:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install
run: npm ci
- name: Test
run: npm test