diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml new file mode 100644 index 0000000..2b458c9 --- /dev/null +++ b/.gitea/workflows/verify.yml @@ -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