diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-24 16:37:47 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-24 18:54:37 +0200 |
commit | 07491f4b98e0548b41e21bb13a32f3f840b0ab1f (patch) | |
tree | 408bd091b28be15ac9fe0202777f8d839c92af76 /shared/extra-utils/miscs/miscs.ts | |
parent | ee90f1bc19c4a62f34f7a329596d613aa931d8a8 (diff) | |
download | PeerTube-07491f4b98e0548b41e21bb13a32f3f840b0ab1f.tar.gz PeerTube-07491f4b98e0548b41e21bb13a32f3f840b0ab1f.tar.zst PeerTube-07491f4b98e0548b41e21bb13a32f3f840b0ab1f.zip |
Add fixtures cache to github actions
Diffstat (limited to 'shared/extra-utils/miscs/miscs.ts')
-rw-r--r-- | shared/extra-utils/miscs/miscs.ts | 4 |
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 | |||
66 | function buildAbsoluteFixturePath (path: string, customCIPath = false) { | 66 | function 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) |