Repository navigation
ci: 补 PR 全量测试 workflow,堵住『依赖升级未经测试直进 main』的漏洞 - #65
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
PR #63(mp-darkmode 1.2.3-alpha.6 → 2.0.0-alpha.4)带着一个失败用例进了 main(
issue12-darkmode-low-contrast:#4.1.1 低对比度检测失效,mp-darkmode 2.0 alpha 砍掉了 contrast 检测能力)。根因是流程漏洞:仓库没有任何 PR 阶段的 CI,而发包 workflow 因幂等检查提前退出,合并后也没跑全量测试——这次破坏从合并到发现,全靠人工。
改动
1. 新增
.github/workflows/test.yml(核心)~/.cache/puppeteer),命中后全程约 3-5 分钟2.
.github/workflows/publish.yml调优与修复的关系
本 PR 只堵流程漏洞。#4.1.1 规则去留(上游 mp-darkmode 2.0 已砍对比度检测)待与依赖维护方确认后再定:保留 → CLI 复活自实现;废弃 → 移除规则+用例+文档章节。修复 PR 将单独提交。