Install a github action to run Lighthouse on PR

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions
Lĩnh vực
ci-cd, devops, frontend

Hướng nghiên cứu

Bắt đầu bằng cách xem xét các repository coursework Table-of-Contents và CYF-Coursework-Template, cùng với các workflow GitHub Actions hiện có của chúng. Xác định cách chạy Lighthouse trên các pull request và báo cáo điểm số của nó, sau đó xác minh rằng ngưỡng accessibility khiến PR chuyển thành bản nháp. Được xem là hoàn tất khi workflow hoạt động cho các repository coursework và tương thích với thiết lập GitHub Actions hiện có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
JavaScript
Star
3
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodeYourFuture/Changes

Tất cả issue của CodeYourFuture/Changes

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.