Use version information to construct payload
This commit is contained in:
parent
81a21bfa1e
commit
dff118f7ad
49 changed files with 917 additions and 226 deletions
|
|
@ -19,7 +19,7 @@ test("emptyPaths", async (t) => {
|
|||
tempDir: tmpDir,
|
||||
toolCacheDir: tmpDir,
|
||||
codeQLCmd: "",
|
||||
ghesVersion: { type: "dotcom" } as util.GHESVersion,
|
||||
gitHubVersion: { type: "dotcom" } as util.GitHubVersion,
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
|
|
@ -39,7 +39,7 @@ test("nonEmptyPaths", async (t) => {
|
|||
tempDir: tmpDir,
|
||||
toolCacheDir: tmpDir,
|
||||
codeQLCmd: "",
|
||||
ghesVersion: { type: "dotcom" } as util.GHESVersion,
|
||||
gitHubVersion: { type: "dotcom" } as util.GitHubVersion,
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], "path1\npath2");
|
||||
|
|
@ -63,7 +63,7 @@ test("exclude temp dir", async (t) => {
|
|||
tempDir,
|
||||
toolCacheDir,
|
||||
codeQLCmd: "",
|
||||
ghesVersion: { type: "dotcom" } as util.GHESVersion,
|
||||
gitHubVersion: { type: "dotcom" } as util.GitHubVersion,
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config);
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue