Add CachingKind enum to control whether to restore or store caches
This commit is contained in:
parent
668531eca8
commit
79faaf1396
15 changed files with 195 additions and 57 deletions
5
lib/config-utils.test.js
generated
5
lib/config-utils.test.js
generated
|
|
@ -33,6 +33,7 @@ const ava_1 = __importDefault(require("ava"));
|
|||
const yaml = __importStar(require("js-yaml"));
|
||||
const sinon = __importStar(require("sinon"));
|
||||
const api = __importStar(require("./api-client"));
|
||||
const caching_utils_1 = require("./caching-utils");
|
||||
const codeql_1 = require("./codeql");
|
||||
const configUtils = __importStar(require("./config-utils"));
|
||||
const feature_flags_1 = require("./feature-flags");
|
||||
|
|
@ -53,7 +54,7 @@ function createTestInitConfigInputs(overrides) {
|
|||
configInput: undefined,
|
||||
buildModeInput: undefined,
|
||||
trapCachingEnabled: false,
|
||||
dependencyCachingEnabled: false,
|
||||
dependencyCachingEnabled: caching_utils_1.CachingKind.None,
|
||||
debugMode: false,
|
||||
debugArtifactName: "",
|
||||
debugDatabaseName: "",
|
||||
|
|
@ -287,7 +288,7 @@ function mockListLanguages(languages) {
|
|||
augmentationProperties: configUtils.defaultAugmentationProperties,
|
||||
trapCaches: {},
|
||||
trapCacheDownloadTime: 0,
|
||||
dependencyCachingEnabled: false,
|
||||
dependencyCachingEnabled: caching_utils_1.CachingKind.None,
|
||||
};
|
||||
const languagesInput = "javascript";
|
||||
const configFilePath = createConfigFile(inputFileContents, tempDir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue