Skip to content

release publish 缺少内置预检 #8

Description

@Guo-Zhang

问题描述

release publish 不检查 cargo buildcargo testbuild statustest status 就直接发布。

后果:可能发布一个有编译错误或测试失败的版本。本地开发时我们手动跑了这些检查,但工具本身没有做。

建议

release publish 流程内置以下预检:

  1. cargo build --release — 确认编译通过
  2. cargo test — 确认测试通过
  3. build status — 确认版本一致性、deps 正常
  4. test status — 确认覆盖率达到阈值

预检失败时拒绝发布。可用 --force--skip-checks 跳过。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions