mirror of
https://github.com/github/codeql-action.git
synced 2025-12-16 04:19:38 +08:00
Add configuration option to set CodeQL DB location
This commit is contained in:
committed by
Edoardo Pirovano
parent
feccdcb876
commit
79c79f1be5
3
lib/analysis-paths.test.js
generated
3
lib/analysis-paths.test.js
generated
@@ -28,6 +28,7 @@ ava_1.default("emptyPaths", async (t) => {
|
||||
toolCacheDir: tmpDir,
|
||||
codeQLCmd: "",
|
||||
gitHubVersion: { type: util.GitHubVariant.DOTCOM },
|
||||
dbLocation: path.resolve(tmpDir, "codeql_databases"),
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
@@ -47,6 +48,7 @@ ava_1.default("nonEmptyPaths", async (t) => {
|
||||
toolCacheDir: tmpDir,
|
||||
codeQLCmd: "",
|
||||
gitHubVersion: { type: util.GitHubVariant.DOTCOM },
|
||||
dbLocation: path.resolve(tmpDir, "codeql_databases"),
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], "path1\npath2");
|
||||
@@ -67,6 +69,7 @@ ava_1.default("exclude temp dir", async (t) => {
|
||||
toolCacheDir,
|
||||
codeQLCmd: "",
|
||||
gitHubVersion: { type: util.GitHubVariant.DOTCOM },
|
||||
dbLocation: path.resolve(tempDir, "codeql_databases"),
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
|
||||
Reference in New Issue
Block a user