ci: 为 lint 和 tsc 增加依赖缓存 - #2583
Open
Blackgan3 wants to merge 3 commits into
Open
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.
变更内容
lint和tscjob 增加共享的node_modules缓存unitjob 缓存隔离,避免恢复缺少 e2e 依赖的缓存unit缓存 key,纳入 OS、CPU 架构和.npmrc,并使用独立的 unit restore 前缀npm i;仅命中 restore key 时仍执行npm i更新依赖uno.blocked,改为在生成后通过公开的parseToken()读取 blocked token 状态问题说明
UnoCSS 66.10新版本出现单测执行失败,该版本将
blocked集合从 generator 实例移入私有实现,导致原有单测及 RN UnoCSS 插件访问uno.blocked时失败。缓存调整只是触发冷安装并暴露了这处既有兼容问题,本次已同步修复生产代码和测试。验证结果
npm run lintnpm run build:tscnpm test -- --runInBand:73/73 个测试套件、592/592 个测试通过npm test -w @mpxjs/unocss-plugin -- --runInBand:2/2 个测试套件、5/5 个测试通过git diff --check