-
Notifications
You must be signed in to change notification settings - Fork 89
93 lines (73 loc) 路 1.97 KB
/
Copy pathci.yml
File metadata and controls
93 lines (73 loc) 路 1.97 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
name: Node CI
permissions:
contents: read
on:
pull_request:
branches: [main]
push:
branches:
- main
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22.12.0'
cache: 'npm'
- name: Setup npm
run: npm install -g npm@11.6.2
- name: Install dependencies
run: npm ci
- name: Run build
run: npm run build
- name: Run lint
run: npm run lint
- name: Run typecheck
run: npm run typecheck
- name: Run tests
run: npm run test
- name: Run smoke tests
run: npm run smoke
- name: Verify package payload
run: npm run pack:check
clawhub-dry-run:
if: github.event_name == 'pull_request'
permissions:
contents: read
id-token: write
uses: ./.github/workflows/clawhub-package-publish.yml
with:
source: "."
dry_run: true
owner: opik
family: code-plugin
clawhub-suspicious-check:
name: ClawHub suspicious scan
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout plugin source
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@e3914758a49697077f7bcd190d36582a61667aad
with:
bun-version: 1.3.10
- name: Checkout ClawHub scanner source
uses: actions/checkout@v6
with:
repository: openclaw/clawhub
ref: 4787be4eb1e06b4ffb947456a6559835a4307f7b
path: clawhub-source
- name: Install ClawHub scanner dependencies
working-directory: clawhub-source
run: bun install --frozen-lockfile
- name: Run ClawHub suspicious scan
env:
CLAWHUB_SOURCE_DIR: clawhub-source
run: bun --bun .scripts/check-clawhub-suspicious.mjs .