-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See check-run-reporter/integrations@20a7e72 from refs/heads/main
- Loading branch information
1 parent
c569ba3
commit 4c7e187
Showing
14 changed files
with
232 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import { Context } from '../lib/types'; | ||
interface SplitArgs { | ||
readonly hostname: string; | ||
/** list of filenames or globs that match all available test files */ | ||
readonly tests: readonly string[]; | ||
readonly label: string; | ||
readonly nodeCount: number; | ||
readonly nodeIndex: number; | ||
readonly token: string; | ||
readonly url: string; | ||
} | ||
/** | ||
* Send the full list of available test files and get back the filees | ||
* appropriate to this node. | ||
*/ | ||
export declare function split({ hostname, tests, label, nodeCount, nodeIndex, token, url }: SplitArgs, context: Context): Promise<any>; | ||
export declare function split({ tests, label, nodeCount, nodeIndex, token }: SplitArgs, context: Context): Promise<any>; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export declare const HOSTNAME = "api.check-run-reporter.com"; | ||
export declare const BASEPATH = "/"; | ||
export declare const PATH_MULTI_STEP_UPLOAD = "/api/v1/submissions/upload"; | ||
export declare const PATH_SINGLE_STEP_UPLOAD = "/api/v1/submissions"; | ||
export declare const PATH_SPLIT = "/api/v1/split"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { AxiosInstance } from 'axios'; | ||
import { Logger } from './logger'; | ||
export interface Context { | ||
readonly logger: Logger; | ||
readonly client: AxiosInstance; | ||
} | ||
export declare type Optional<T> = T | undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Context } from '../lib/types'; | ||
/** | ||
* Creates a (semi) mocked context for use in tests. | ||
*/ | ||
export declare function makeTestContext(): Context; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters