Automattic / Automattic/VIP-Coding-Standards

CI: add code coverage check

未关闭
#661 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Type: Maintenance
主要语言
PHP
星标
261
派生
44
平均合并
19 分钟
30 天内合并 PR
1

描述

Follow up action after #628

Conversation about this between @GaryJones and @jrfnl from #628:

>>> Register with coveralls.io (or another service) and start recording and checking code coverage for builds.
>>
>> What sort of code coverage % do we currently have?
>
>![image](https://user-images.githubusercontent.com/663378/109984243-dcefa980-7d03-11eb-8320-3217e2ef7bd2.png)
>
>It's one of the things I've been monitoring locally when I have been working on individual sniffs.
>
>> Can this be done within the GitHub Actions rather than using an external service to display the results?
>
>Yes, we can use the `text` reporter instead of checkstyle to see the results in the action.
>
>We'd need to investigate how we can make the build fail on a decrease in code coverage in that case though. That part is what external services do automatically (and with configurable settings).

贡献指南

打开贡献指南

调研方向

首先检查仓库的 GitHub Actions 配置以及 #628 中关于 coverage 的讨论。确定 coverage 应使用 Coveralls 还是 action 内的文本 reporter,当前百分比如何确定,以及降低时应如何使 build 失败。完成的标准是 build 记录 coverage,并强制执行已达成一致的降低检查。

由索引模型根据 Issue 内容生成。

评估

技术栈
github-actions, php
领域
ci-cd, testing
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。