-
Notifications
You must be signed in to change notification settings - Fork 38
65 lines (52 loc) · 1.56 KB
/
docs-code-ci.yml
File metadata and controls
65 lines (52 loc) · 1.56 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
name: Docs Code CI
on:
pull_request:
paths:
- ".github/actionlint.yaml"
- ".github/workflows/docs-code-ci.yml"
- ".openclaw-sync/check-docs-mdx.mjs"
- ".openclaw-sync/lib/**"
- "Makefile"
- "package.json"
- "package-lock.json"
- "scripts/cloudflare-cutover-docs-hosts.mjs"
- "scripts/docs-site/**"
- "workers/**"
- "wrangler.toml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docs-code-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
validate:
name: Validate docs code
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out
uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install
run: npm ci
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y librsvg2-bin
- name: Install Playwright browser
run: npx playwright install --with-deps chromium
- name: Syntax check scripts
run: |
find scripts .openclaw-sync -name '*.mjs' -print0 \
| xargs -0 -n 1 node --check
- name: Validate Worker bundle
run: npx wrangler@4.88.0 deploy --dry-run --config wrangler.toml
- name: Build shell artifact
run: npm run docs:build:r2:shell
- name: Smoke shell artifact
run: npm run docs:smoke:shell
- name: Visual smoke
run: npm run docs:visual