TRAP Caching: Skip uploading of small caches
This commit is contained in:
parent
a643eb3621
commit
b98b2def63
9 changed files with 88 additions and 35 deletions
|
|
@ -165,6 +165,7 @@ test("upload cache key contains right fields", async (t) => {
|
|||
const loggedMessages = [];
|
||||
const logger = getRecordingLogger(loggedMessages);
|
||||
sinon.stub(actionsUtil, "isAnalyzingDefaultBranch").resolves(true);
|
||||
sinon.stub(util, "tryGetFolderBytes").resolves(999_999_999);
|
||||
const stubSave = sinon.stub(cache, "saveCache");
|
||||
process.env.GITHUB_SHA = "somesha";
|
||||
await uploadTrapCaches(stubCodeql, testConfigWithoutTmpDir, logger);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue