Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# ClawX CI Workflow
# Runs on pull requests (main/develop)
name: Check and Build

on:
pull_request:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run linter
run: pnpm run lint

- name: Run typecheck
run: pnpm run typecheck

- name: Run tests
run: pnpm run test

build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build:vite
114 changes: 0 additions & 114 deletions .github/workflows/ci.yml

This file was deleted.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@
"scripts": {
"init": "pnpm install && pnpm run uv:download",
"dev": "vite",
"bundle:openclaw": "zx scripts/bundle-openclaw.mjs",
"build": "vite build && zx scripts/bundle-openclaw.mjs && electron-builder",
"build:vite": "vite build && zx scripts/bundle-openclaw.mjs",
"build:arm": "vite build && zx scripts/bundle-openclaw.mjs && electron-builder --mac --arm64",
"preview": "vite preview",
"build:vite": "vite build",
"lint": "eslint . --fix",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:e2e": "playwright test",
"clean": "node -e \"['dist','dist-electron','release'].forEach(d=>require('fs').rmSync(d,{recursive:true,force:true}))\"",
"uv:download": "zx scripts/download-bundled-uv.mjs",
"uv:download:mac": "zx scripts/download-bundled-uv.mjs --platform=mac",
"uv:download:win": "zx scripts/download-bundled-uv.mjs --platform=win",
Expand Down Expand Up @@ -109,4 +105,4 @@
"zx": "^8.8.5"
},
"packageManager": "pnpm@10.29.1+sha512.48dae233635a645768a3028d19545cacc1688639eeb1f3734e42d6d6b971afbf22aa1ac9af52a173d9c3a20c15857cfa400f19994d79a2f626fcc73fccda9bbc"
}
}