test: align pnpm cache workflow assertion · openclaw/openclaw@c4f0682
steipete
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -88,7 +88,9 @@ describe("package acceptance workflow", () => {
|
88 | 88 | expect(packageJson.packageManager).toMatch(/^pnpm@\d+\.\d+\.\d+\+sha512\.[a-f0-9]+$/u); |
89 | 89 | expect(setupPnpmAction).toContain("uses: pnpm/action-setup@"); |
90 | 90 | expect(setupPnpmAction).toContain("package_json_file: ${{ inputs.package-manager-file }}"); |
91 | | -expect(setupPnpmAction).toContain("cache: ${{ inputs.use-actions-cache }}"); |
| 91 | +expect(setupPnpmAction).toContain( |
| 92 | +"cache: ${{ inputs.use-actions-cache == 'true' && runner.os != 'Windows' }}", |
| 93 | +); |
92 | 94 | expect(setupPnpmAction).toContain("cache_dependency_path: ${{ inputs.lockfile-path }}"); |
93 | 95 | expect(setupPnpmAction).not.toContain("actions/cache"); |
94 | 96 | expect(setupPnpmAction).not.toContain("shasum"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。