Extract query-filters test into a composite action
Removes duplicated yaml. Also add some better typings.
This commit is contained in:
parent
428caf0cf5
commit
59ca9b59cb
4 changed files with 86 additions and 58 deletions
|
|
@ -65,6 +65,22 @@ interface IncludeQueryFilter {
|
|||
include: Record<string, string[] | string>;
|
||||
}
|
||||
|
||||
export type QuerySuitePackEntry = {
|
||||
version?: string;
|
||||
} & (
|
||||
| {
|
||||
qlpack: string;
|
||||
}
|
||||
| {
|
||||
from?: string;
|
||||
query?: string;
|
||||
queries?: string;
|
||||
apply?: string;
|
||||
}
|
||||
);
|
||||
|
||||
export type QuerySuiteEntry = QuerySuitePackEntry | QueryFilter;
|
||||
|
||||
/**
|
||||
* Lists of query files for each language.
|
||||
* Will only contain .ql files and not other kinds of files,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue