aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/miscs')
-rw-r--r--shared/extra-utils/miscs/miscs.ts5
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
67function isGithubCI () {
68 return !!process.env.GITHUB_WORKSPACE
69}
70
67function buildAbsoluteFixturePath (path: string, customCIPath = false) { 71function 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,