Install a github action to run Lighthouse on PR

Offen
#4 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
github-actions
Bereich
ci-cd, devops, frontend

Rechercherichtung

Beginne mit der Überprüfung der Table-of-Contents- und CYF-Coursework-Template-Repositories für Kursarbeiten sowie ihrer vorhandenen GitHub Actions-Workflows. Ermittle, wie Lighthouse auf Pull Requests ausgeführt werden und seinen Score melden kann, und überprüfe anschließend, dass der Accessibility-Schwellenwert dazu führt, dass der PR zu einem Draft wird. Die Aufgabe ist abgeschlossen, wenn der Workflow für Repositories für Kursarbeiten funktioniert und mit dem vorhandenen GitHub Actions-Setup kompatibel ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Resources needed Tech Ed Time Tools

I want to do this:

Install a github action to run Lighthouse on PR
These are the coursework repos: https://github.com/CodeYourFuture/Table-of-Contents
These are the template repos: https://github.com/CodeYourFuture/CYF-Coursework-Template

Given a coursework repo
When a trainee opens a pull request
And the coursework contains or produces complete HTML pages
Then Lighthouse is run
And the score is reported on the pull request

When the score is less than 100 on Accessibility
Then the PR is set to draft

Here’s why I want to do it:

We have found that Lighthouse is really helpful for helping trainees evaluate their own code
Setting a lighthouse report on PR is useful for trainees and volunteers to check basic front end quality

Here’s how it serves our goals:

This is how much time I can put towards this change:

  • I can spend 3 hours over 4 weeks testing this for a devops person and merging it in to relevant repos, but I cannot teach someone to do this and then test it for them -- I need devops people to take this forward as I don't have capacity

This is the help I need from others to get this done (if any):

  • a devops grad or volunteer to put this in place
  • @Dedekind561 to keep an eye on how it will work with his github actions
Vorherrschende Sprache
JavaScript
Sterne
3
Forks
4
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CodeYourFuture/Changes

Alle Issues in CodeYourFuture/Changes

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.