进一步集成 Google Cloud Build 与 GitHub 检查 API

Further Integrating Google Cloud Build with GitHub Checks API

我已经在我的 GitHub 项目中安装了 Google Cloud Build,并添加了一个 Dockerfile 和 cloudbuild.yaml,到目前为止,我对此很满意。构建通过或失败基于单元测试和 lint 规则。

但是,当我查看 GitHub 中的检查选项卡时,我看到的是:

这是非常缺乏信息的。我宁愿不必进入 Google Cloud Build 来弄清楚构建失败的原因。

我希望能够将 Build 分解为 Test 和 Lint 子组,每个子组都会有它们的实际结果(或它们的某些子集)。

我该怎么做?

请注意,与 Google 云的集成 非常 最近 GitHub:end of July 2018:它仍然可以作为一项服务发展。

您目前看到的描述如下:

Cloud Build uses the new Checks API, a better way to get feedback from integration on your code. Once a build is complete, you can see rich status reports, annotated code, and detailed information—all without leaving GitHub.

现在,Google adds

Insights:

Once the build is complete, details about build times, failures and artifacts are available within GitHub through the Checks API, so you can understand and diagnose build results from within the familiar GitHub environment.
Full logs and history are available in Cloud Build’s UI in the Google Cloud Console.