Automattic / Automattic/VIP-Coding-Standards
CI: add code coverage check
- Lingua principale
- PHP
- Stelle
- 261
- Fork
- 44
- Merge medio
- 19m
- PR unite (30g)
- 1
Descrizione
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?
>
>
>
>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).
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia esaminando la configurazione GitHub Actions del repository e la discussione sulla coverage in #628. Determina se la coverage debba usare Coveralls o un reporter testuale nell’action, come viene stabilita la percentuale attuale e come una diminuzione debba far fallire la build. Il lavoro è completato quando le build registrano la coverage e applicano il controllo concordato sulle diminuzioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, php
- Ambito
- ci-cd, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100