-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (25 loc) · 865 Bytes
/
Copy pathverify.yml
File metadata and controls
33 lines (25 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Verify
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# V7 产品门禁:普通 PR 只跑快速 verify;正式 push 到 main 必须跑 verify:release(verify + gate:v7-product + diversity)。
# 旧 v1.2.3 的 health-metrics / adjacent-rarity / BattlePower / matched-rarity /
# Similar-BP 公平性 gate 已移出 release 阻断,仅保留在 npm run diagnostics:legacy。
- name: Verify (PR fast gate)
if: github.event_name == 'pull_request'
run: npm run verify
- name: Verify Release (main release gate)
if: github.event_name == 'push'
run: npm run verify:release