fix: materialize node CICD cache
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { test } from "bun:test";
|
||||
|
||||
import { runtimeLaneCicdRepoEnsureScript } from "./cleanup";
|
||||
|
||||
test("CI/CD repo cache is materialized for local shared render clones", () => {
|
||||
const script = runtimeLaneCicdRepoEnsureScript({
|
||||
cicdRepo: "/tmp/hwlab-v03-cicd.git",
|
||||
cicdRepoLock: "/tmp/hwlab-v03-cicd-repo.lock",
|
||||
gitUrl: "https://github.com/pikasTech/HWLAB.git",
|
||||
sourceBranch: "v0.3",
|
||||
downloadProfile: {
|
||||
git: {
|
||||
retries: 2,
|
||||
timeoutSeconds: 60,
|
||||
},
|
||||
},
|
||||
} as never);
|
||||
|
||||
assert.doesNotMatch(script, /--filter=blob:none/u);
|
||||
assert.match(script, /reason=partial-clone-cache/u);
|
||||
assert.match(script, /remote\.origin\.promisor/u);
|
||||
assert.match(script, /remote\.origin\.partialclonefilter/u);
|
||||
assert.match(script, /clone --bare --depth=1 --single-branch/u);
|
||||
});
|
||||
Reference in New Issue
Block a user