-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (53 loc) · 1.7 KB
/
ci.yml
File metadata and controls
66 lines (53 loc) · 1.7 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
name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# Match release.yml: pin-only checks, no npm `openclaw@latest` drift warnings in CI logs
OPENCLAW_SKIP_NPM_LATEST_CHECK: '1'
# setup-node `cache: pnpm` keys off the lockfile and restores the pnpm store only (not app source).
# The checkout step is always the source tree for this commit; `pnpm install --frozen-lockfile` materializes node_modules.
jobs:
verify:
name: Lint, type-check, build
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Print build identity (SHA + HEAD)
run: |
echo "GITHUB_REF=$GITHUB_REF"
echo "GITHUB_SHA=$GITHUB_SHA"
git rev-parse HEAD
git log -1 --oneline
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.16.0
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Type check
run: pnpm run type-check
- name: Build
run: pnpm run build
# Same Control UI pipeline as release (Linux Vite); catches broken upstream UI before tag builds.
- name: Build OpenClaw Control UI (release parity)
env:
NODE_OPTIONS: '--max-old-space-size=4096'
run: pnpm exec tsx scripts/ci-build-openclaw-control-ui.ts