aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-24 16:37:47 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-24 18:54:37 +0200
commit07491f4b98e0548b41e21bb13a32f3f840b0ab1f (patch)
tree408bd091b28be15ac9fe0202777f8d839c92af76 /shared/extra-utils/miscs
parentee90f1bc19c4a62f34f7a329596d613aa931d8a8 (diff)
downloadPeerTube-07491f4b98e0548b41e21bb13a32f3f840b0ab1f.tar.gz
PeerTube-07491f4b98e0548b41e21bb13a32f3f840b0ab1f.tar.zst
PeerTube-07491f4b98e0548b41e21bb13a32f3f840b0ab1f.zip
Add fixtures cache to github actions
Diffstat (limited to 'shared/extra-utils/miscs')
-rw-r--r--shared/extra-utils/miscs/miscs.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/miscs/miscs.ts b/shared/extra-utils/miscs/miscs.ts
index 6a73f461e..dfd6e28cb 100644
--- a/shared/extra-utils/miscs/miscs.ts
+++ b/shared/extra-utils/miscs/miscs.ts
@@ -66,8 +66,8 @@ async function testImage (url: string, imageName: string, imagePath: string, ext
66function buildAbsoluteFixturePath (path: string, customCIPath = false) { 66function buildAbsoluteFixturePath (path: string, customCIPath = false) {
67 if (isAbsolute(path)) return path 67 if (isAbsolute(path)) return path
68 68
69 if (customCIPath) { 69 if (customCIPath && process.env.GITHUB_WORKSPACE) {
70 return join(process.env.HOME, 'fixtures', path) 70 return join(process.env.GITHUB_WORKSPACE, 'fixtures', path)
71 } 71 }
72 72
73 return join(root(), 'server', 'tests', 'fixtures', path) 73 return join(root(), 'server', 'tests', 'fixtures', path)