Automattic / Automattic/VIP-Coding-Standards

CI: add code coverage check

Abierto
#661 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Type: Maintenance
Lenguaje dominante
PHP
Estrellas
261
Forks
44
Merge medio
19 min
PR fusionados (30 d)
1

Descripción

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).

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza revisando la configuración de GitHub Actions del repositorio y el debate sobre la cobertura en #628. Determina si la cobertura debe usar Coveralls o un informador de texto dentro de la action, cómo se establece el porcentaje actual y cómo una disminución debe hacer que falle la compilación. Se considera terminado cuando las compilaciones registran la cobertura y aplican la comprobación acordada de disminución.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
github-actions, php
Área
ci-cd, testing
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.