diff options
Diffstat (limited to 'shared/extra-utils/miscs/miscs.ts')
-rw-r--r-- | shared/extra-utils/miscs/miscs.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/extra-utils/miscs/miscs.ts b/shared/extra-utils/miscs/miscs.ts index 764b74bda..1cb1cf440 100644 --- a/shared/extra-utils/miscs/miscs.ts +++ b/shared/extra-utils/miscs/miscs.ts | |||
@@ -64,6 +64,10 @@ async function testImage (url: string, imageName: string, imagePath: string, ext | |||
64 | expect(data.length).to.be.below(maxLength, "the generated image is way larger than the recorded fixture") | 64 | expect(data.length).to.be.below(maxLength, "the generated image is way larger than the recorded fixture") |
65 | } | 65 | } |
66 | 66 | ||
67 | function isGithubCI () { | ||
68 | return !!process.env.GITHUB_WORKSPACE | ||
69 | } | ||
70 | |||
67 | function buildAbsoluteFixturePath (path: string, customCIPath = false) { | 71 | function buildAbsoluteFixturePath (path: string, customCIPath = false) { |
68 | if (isAbsolute(path)) return path | 72 | if (isAbsolute(path)) return path |
69 | 73 | ||
@@ -151,6 +155,7 @@ export { | |||
151 | getFileSize, | 155 | getFileSize, |
152 | immutableAssign, | 156 | immutableAssign, |
153 | testImage, | 157 | testImage, |
158 | isGithubCI, | ||
154 | buildAbsoluteFixturePath, | 159 | buildAbsoluteFixturePath, |
155 | root, | 160 | root, |
156 | generateHighBitrateVideo, | 161 | generateHighBitrateVideo, |