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
1
lib/trap-caching.test.js
generated
1
lib/trap-caching.test.js
generated
|
|
@ -164,6 +164,7 @@ function getTestConfigWithTempDir(tmpDir) {
|
|||
const loggedMessages = [];
|
||||
const logger = (0, testing_utils_1.getRecordingLogger)(loggedMessages);
|
||||
sinon.stub(actionsUtil, "isAnalyzingDefaultBranch").resolves(true);
|
||||
sinon.stub(util, "tryGetFolderBytes").resolves(999999999);
|
||||
const stubSave = sinon.stub(cache, "saveCache");
|
||||
process.env.GITHUB_SHA = "somesha";
|
||||
await (0, trap_caching_1.uploadTrapCaches)(stubCodeql, testConfigWithoutTmpDir, logger);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue