Skip to content

Commit c2a85a1

Browse files
authored
feat(ci): P0 smoke 加 push to main trigger (#55)
每次 PR 成功 squash merge 到 main 就跑一次 P0,確認合進去的版本在 main HEAD 實際能 pass(squash 可能合多個 commit,個別 PR 過但合起來 有 race 也能在此補抓)。 trigger 列表: - pull_request to main:PR 開/更新時(既有) - push to main:merge 後(新增) - schedule cron daily 09:00 台灣(既有) - workflow_dispatch:手動(既有) full-regression.yml 維持 weekly 不加 push trigger(每 merge 跑 50+ 分太重)。 concurrency 已有 `p0-${{ github.ref }}` group,PR ref(refs/pull/N/merge) 與 main push(refs/heads/main)是不同 group,不會互相 cancel。
1 parent af93014 commit c2a85a1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/p0.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ name: P0 Smoke (4 sites)
22

33
# 觸發條件:
44
# - PR 開啟 / 更新時自動跑(擋住有問題的 merge)
5+
# - 成功 merge 到 main 後再跑一次(確認 squash 後合進去的版本實際 OK)
56
# - 每日 09:00 台灣(= 01:00 UTC)定時跑,捕捉產品端 drift(無 PR 時的健康度)
67
# - 手動 trigger(Actions 介面按鈕)
78
on:
89
pull_request:
910
branches: [main]
11+
push:
12+
branches: [main]
1013
schedule:
1114
- cron: '0 1 * * *' # 每天 01:00 UTC = 09:00 台灣
1215
workflow_dispatch:

0 commit comments

Comments
 (0)