ci(gitea): 增加 Gitea Actions 门禁(runs-on linux,NAS runner)
This commit is contained in:
1 parent
d0c3edf352
commit
927b725373
1 file changed
+28
@@ -0,0 +1,28 @@
|
||||
name: Verify
|
||||
# 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 verify:ci
|
||||
Reference in new issue
Block a user