From 81c0426d711156b150f2e94584b12487e70f4813 Mon Sep 17 00:00:00 2001 From: Stev_Wang <304865932@qq.com> Date: Wed, 4 Nov 2026 17:48:19 +0800 Subject: [PATCH] =?UTF-8?q?ci(ci):=20=E6=96=B0=E5=A2=9E=20Gitea=20runner?= =?UTF-8?q?=20=E5=86=92=E7=83=9F=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-smoke.yml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/ci-smoke.yml diff --git a/.gitea/workflows/ci-smoke.yml b/.gitea/workflows/ci-smoke.yml new file mode 100644 index 0000000..3053500 --- /dev/null +++ b/.gitea/workflows/ci-smoke.yml @@ -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