Skip to content

Tree ci#16: Maka 式快慢分离 CI 与补丁等价交付契约 - #22

Merged
RiriAgent merged 1 commit into
mainfrom
tree/mouriya-devops-ci-16
Nov 28, 2026
Merged

RiriAgent merged 1 commit into
mainfrom
tree/mouriya-devops-ci-16

Conversation

@RiriAgent

Copy link
Copy Markdown
Contributor

Tree #16

摘要

本仓接入唯一顶层 test 门禁(pr.yml 经 actions/mise-check 运行 check:pr)、workflow 策略自测,仓库只开 squash 合并并自动删分支。整棵树的总体验收证据发布在 #18。

关闭

Closes #17(https://github.com/mouriya-devops/ci/pull/21)
Closes #18(证据包 https://github.com/mouriya-devops/ci/issues/18#issuecomment-7238866622)
Closes #16

* Add a PR gate and an offline workflow policy self-test

- Add .github/workflows/pr.yml: pull_request on main and tree/** plus merge_group, one hosted job named test running ./actions/mise-check with task check:pr
- Restrict self-check.yml to push on main and tree/** so pull requests no longer produce check / check
- Add selftest/workflows/policy.test.ts: offline bun test over .github/workflows/*.yml and actions/**/*.yml for unpinned external refs, persist-credentials: false, pr.yml path filters and continue-on-error, and the cross-repo self-hosted rejection
- Add mise task check:pr and run the policy self-test from check, which keeps actionlint
- Refs #17

* selftest: run the fork-PR rejection for real and lint workflows in check:pr

- policy test executes the parse scripts of check.yml, image.yml and release-artifact.yml and guard.sh under fork and same-repo/hosted inputs; workflows with caller-controlled runs-on must be probed
- check:pr runs actionlint (with shellcheck) before the policy test; check depends on check:pr

Refs #17
@RiriAgent
RiriAgent merged commit 526565d into main Nov 28, 2026
3 checks passed
@RiriAgent
RiriAgent deleted the tree/mouriya-devops-ci-16 branch November 28, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant