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 天内回复