Pin NPM version installed by CI pipelines
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 20/100
调研方向
检查所列仓库中的 GitHub Actions CI 流水线定义,从 npm install --global npm 步骤和每个 Node.js 测试矩阵条目开始。将它们与所述的 NPM 版本策略进行比较,并确认所列仓库已完成更新;清单和链接的 PR 表明这项工作已经完成。
由索引模型根据 Issue 内容生成。
描述
When LoopBack's CI pipelines started incorporating GitHub Actions, npm install --global npm was added as a step performed before installation. This was to prevent an issue where, under certain circumstances, the Mocha tests would silently pass without even executing the tests themselves. However, a side-effect was that this would install the latest NPM version. This meant that CI pipelines which still tested against Node.js v10 broke due to incompatibility with the newly-relesaed NPM v8.
The NPM version policy is as follows:
- Use the latest supported NPM version for that specific Node.js version.
- Where there may be a gap between NPM major versions in the test matrix, add an additional x86 Linux test matrix permutation on GitHub Actions.
This issue is to track the updating of CI pipelines to use pinned NPM major versions.
Repos to update:
- strong-soap (PR: https://github.com/loopbackio/strong-soap/pull/343)
- loopback-connector (PR: https://github.com/loopbackio/loopback-connector/pull/192)
- loopback-connector-mongodb
-
v5.x(Not applicable)
- loopback-connector-grpc (PR: https://github.com/loopbackio/loopback-connector-grpc/pull/17)
- 主要语言
- Shell
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
loopbackio/cicd 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 38/100
loopbackio/cicd#170 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
loopbackio/cicd#91 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
loopbackio/cicd#89 ·
-
难度 3/5 1-2 天 新手友好度 35/100
loopbackio/cicd#39 ·
-
难度 4/5 3-5 天 新手友好度 35/100
loopbackio/cicd#26 ·
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/rhdh-plugin-export-overlays#4391 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 72/100
graygarbage/HermesKey#20 ·
-
Version-drift constraint evaluator (#40): validate the candidate version and run its unit test in CI未关闭
难度 2/5 1-3 小时 新手友好度 78/100
n8n-io/terraform-google-n8n#41 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100