feat: 初始化 SCALE OS 工程框架
- 添加 SCALE Engine 配置 (.scale/) - 添加 OpenClaw Agent 配置 (.openclaw/) - 添加知识文档 (AGENTS.md, TOOLS.md) - 添加质量契约和工作流配置 - 添加 22 个工作流模板 - 添加验证脚本和门控脚本 - 添加 skills-registry 技能注册表
This commit is contained in:
32
docs/workflow/templates/github-actions-scale-preflight.yml
Normal file
32
docs/workflow/templates/github-actions-scale-preflight.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: SCALE Preflight
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
preflight:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install project dependencies when present
|
||||
shell: bash
|
||||
run: |
|
||||
if [ -f package-lock.json ]; then
|
||||
npm ci
|
||||
elif [ -f package.json ]; then
|
||||
npm install
|
||||
fi
|
||||
|
||||
- name: Run SCALE preflight
|
||||
run: npx @hongmaple0820/scale-engine@latest preflight --service all --preflight-profile ci
|
||||
Reference in New Issue
Block a user