持续集成
在 CI 中自动执行 build/diff/check,把兼容性检查变成团队默认流程。
持续集成
把 Cogna 接入 CI 后,你可以在每个 PR 上自动获得兼容性反馈。
最小流水线
- uses: ./integrations/actions/setup-cogna
- uses: ./integrations/actions/run-cogna
with:
working-directory: ./sdk
command: build
- uses: ./integrations/actions/run-cogna
with:
working-directory: ./sdk
command: diff
- uses: ./integrations/actions/run-cogna
with:
working-directory: ./sdk
command: check
upload-sarif: true推荐产物
dist/bundle.ciq.tgzdist/diff.jsondist/check.sarif.json
分阶段落地建议
- 第一阶段:只上传结果,不阻断合并
- 第二阶段:对
error启用阻断 - 第三阶段:形成发布门禁基线
与下载页联动
团队成员可通过 /download 统一安装 CLI / Desktop / SDK,降低环境差异。