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 摘要。