Remove toolcache decorator
This decorator enabled us to use the functionality of the Actions toolcache within the runner too. Now that we've deleted the runner we no longer need it.
This commit is contained in:
parent
e8c48cc8cf
commit
41d6ac4d2a
45 changed files with 132 additions and 892 deletions
|
|
@ -90,7 +90,6 @@ test("load empty config", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -111,7 +110,6 @@ test("load empty config", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -157,7 +155,6 @@ test("loading config saves config", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -192,7 +189,6 @@ test("load input outside of workspace", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
getCachedCodeQL(),
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -231,7 +227,6 @@ test("load non-local input with invalid repo syntax", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
getCachedCodeQL(),
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -271,7 +266,6 @@ test("load non-existent input", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
getCachedCodeQL(),
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -348,7 +342,6 @@ test("load non-empty input", async (t) => {
|
|||
paths: ["c/d"],
|
||||
},
|
||||
tempDir: tmpDir,
|
||||
toolCacheDir: tmpDir,
|
||||
codeQLCmd: codeQL.getPath(),
|
||||
gitHubVersion,
|
||||
dbLocation: path.resolve(tmpDir, "codeql_databases"),
|
||||
|
|
@ -373,7 +366,6 @@ test("load non-empty input", async (t) => {
|
|||
"my-db",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -440,7 +432,6 @@ test("Default queries are used", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -515,7 +506,6 @@ test("Queries can be specified in config file", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -584,7 +574,6 @@ test("Queries from config file can be overridden in workflow file", async (t) =>
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -651,7 +640,6 @@ test("Queries in workflow file can be used in tandem with the 'disable default q
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -711,7 +699,6 @@ test("Multiple queries can be specified in workflow file, no config file require
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -792,7 +779,6 @@ test("Queries in workflow file can be added to the set of queries without overri
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -863,7 +849,6 @@ test("Invalid queries in workflow file handled correctly", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -931,7 +916,6 @@ test("API client used when reading remote config", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -961,7 +945,6 @@ test("Remote config handles the case where a directory is provided", async (t) =
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
getCachedCodeQL(),
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -999,7 +982,6 @@ test("Invalid format of remote config handled correctly", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
getCachedCodeQL(),
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -1038,7 +1020,6 @@ test("No detected languages", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -1069,7 +1050,6 @@ test("Unknown languages", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
getCachedCodeQL(),
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -1122,7 +1102,6 @@ test("Config specifies packages", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -1179,7 +1158,6 @@ test("Config specifies packages for multiple languages", async (t) => {
|
|||
"",
|
||||
{ owner: "github", repo: "example" },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -1247,7 +1225,6 @@ function doInvalidInputTest(
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
@ -1770,7 +1747,6 @@ const mlPoweredQueriesMacro = test.macro({
|
|||
"",
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue