Automattic / Automattic/VIP-Coding-Standards
CI: add code coverage check
- Vorherrschende Sprache
- PHP
- Sterne
- 261
- Forks
- 44
- Ø Merge
- 19 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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).
Beitragsleitfaden
Rechercherichtung
Beginne mit der Überprüfung der GitHub-Actions-Konfiguration des Repositorys und der Coverage-Diskussion in #628. Ermittle, ob Coverage Coveralls oder einen textbasierten Reporter innerhalb der Action verwenden sollte, wie der aktuelle Prozentsatz festgelegt wird und wie eine Verringerung den Build fehlschlagen lassen sollte. Als erledigt gilt die Aufgabe, wenn Builds Coverage aufzeichnen und die vereinbarte Prüfung auf Verringerungen durchsetzen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github-actions, php
- Bereich
- ci-cd, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100