Install a github action to run Lighthouse on PR

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions
领域
ci-cd, devops, frontend

调研方向

首先检查 coursework 仓库 Table-of-Contents 和 CYF-Coursework-Template,以及其中现有的 GitHub Actions 工作流。确定如何在 pull request 上运行 Lighthouse 并报告其分数,然后验证 accessibility 阈值会使 PR 变为草稿。对于 coursework 仓库,工作流能够正常运行并且与现有的 GitHub Actions 设置兼容,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
JavaScript
星标
3
派生
4
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeYourFuture/Changes 的其他 Issue

查看 CodeYourFuture/Changes 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。