Install a github action to run Lighthouse on PR
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
研究方向
先檢視 coursework 儲存庫 Table-of-Contents 和 CYF-Coursework-Template,以及其中現有的 GitHub Actions 工作流程。確認如何在 pull request 上執行 Lighthouse 並回報其分數,然後驗證 accessibility 閾值會使 PR 變成草稿。當工作流程能在 coursework 儲存庫中運作,且與現有的 GitHub Actions 設定相容時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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:
- automation frees up volunteers for meaningful technical mentorship
- we want trainees to write good code and this will help them and help them see how to fix things
- Also listed on Syllabus https://github.com/CodeYourFuture/syllabus/issues/529
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
- 主要語言
- JavaScript
- 星號
- 3
- 分支
- 4
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CodeYourFuture/Changes 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
CodeYourFuture/Changes#13 ·
-
Answer common questions from applicants in the ITD Slack space可能重新可做 @alecmccrindle 於 1259 天前認領,目前沒有進行中的 PR。 未關閉Resources needed Skills Staff Time
CodeYourFuture/Changes#12 · 4 則留言 · 已指派 1 人 ·
-
Answer common questions from applicants, volunteers and partners on the CYF website可能重新可做 @alecmccrindle 於 1259 天前認領,目前沒有進行中的 PR。 未關閉Resources needed Skills Staff Time
CodeYourFuture/Changes#11 · 6 則留言 · 已指派 1 人 ·
-
CYF Jumpstart未關閉Skills Staff Tech Ed Volunteers
難度 5/5 一週以上 新手友好度 20/100
CodeYourFuture/Changes#10 · 7 則留言 ·
-
Resources needed Skills Tech Ed Time Trainees
難度 5/5 一週以上 新手友好度 25/100
CodeYourFuture/Changes#9 · 8 則留言 ·
查看 CodeYourFuture/Changes 的全部 Issue
相似的 Issue
-
bug
難度 1/5 1-3 小時 新手友好度 78/100
Jason-Vaughan/TangleClaw#3270 ·
維護者通常 1 天內回覆
-
docs
難度 2/5 1-3 小時 新手友好度 66/100
open-telemetry/opentelemetry.io#12846 ·
維護者通常 1 天內回覆
-
Beginner Enhancement
難度 2/5 1-3 小時 新手友好度 62/100
JSPrismarine/JSPrismarine#3740 ·
維護者通常 1 天內回覆
-
enhancement
難度 1/5 1 小時以內 新手友好度 88/100
xdelmo/Portfolio-minimal#637 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
angrymrt/wiskunde-fit#242 ·
維護者通常 1 天內回覆