30 lines
721 B
YAML
30 lines
721 B
YAML
name: Verify (Gitea)
|
|
# Gitea Actions(自托管 NAS runner)用的门禁:只跑构建/单测/事实守门,
|
|
# 与 GitHub 版 .github/workflows/verify.yml 等价,但用 runner 自有 node:22 镜像,不装 setup-node。
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- 'docs/**'
|
|
- '.gitea/**'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: verify-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
gate:
|
|
name: gate (build · unit · facts)
|
|
runs-on: linux
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- run: node -v && npm -v
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run verify:ci
|