Automattic / Automattic/VIP-Coding-Standards

CI: add code coverage check

Ouverte
#661 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Type: Maintenance
Langage dominant
PHP
Étoiles
261
Forks
44
Merge moyen
19 min
PR mergées (30 j)
1

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par examiner la configuration GitHub Actions du dépôt et la discussion sur la couverture dans #628. Déterminez si la couverture doit utiliser Coveralls ou un rapporteur texte dans l’action, comment le pourcentage actuel est établi et comment une diminution doit faire échouer le build. C’est terminé lorsque les builds enregistrent la couverture et appliquent le contrôle convenu en cas de diminution.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github-actions, php
Domaine
ci-cd, testing
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.