ci(ci): 新增 Gitea runner 冒烟工作流
This commit is contained in:
1 parent
0d48bd7e37
commit
81c0426d71
1 file changed
+43
@@ -0,0 +1,43 @@
|
||||
# 轻量冒烟工作流:快速验证自建 Gitea Actions runner 与工具链可用(目标 1~2 分钟)。
|
||||
# 完整质量门禁见 ci.yml;本地等价命令 pnpm ci:local。
|
||||
# 触发方式:Gitea 仓库 Actions 页面手动 Run workflow,或调用
|
||||
# POST /api/v1/repos/{owner}/{repo}/actions/workflows/ci-smoke.yml/dispatches {"ref":"main"}
|
||||
name: ci-smoke
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ci-smoke-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
smoke:
|
||||
name: Runner 冒烟
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 安装 pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10.34.9
|
||||
|
||||
- name: 安装 Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.15.0
|
||||
cache: pnpm
|
||||
|
||||
- name: 打印环境信息
|
||||
run: |
|
||||
echo "runner=${RUNNER_NAME:-unknown}"
|
||||
node -v
|
||||
pnpm -v
|
||||
git rev-parse --short HEAD
|
||||
|
||||
- name: 依赖安装冒烟
|
||||
run: pnpm install --frozen-lockfile
|
||||
Reference in new issue
Block a user