From 07491f4b98e0548b41e21bb13a32f3f840b0ab1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 24 Aug 2020 16:37:47 +0200 Subject: Add fixtures cache to github actions --- shared/extra-utils/miscs/miscs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared') 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 function buildAbsoluteFixturePath (path: string, customCIPath = false) { if (isAbsolute(path)) return path - if (customCIPath) { - return join(process.env.HOME, 'fixtures', path) + if (customCIPath && process.env.GITHUB_WORKSPACE) { + return join(process.env.GITHUB_WORKSPACE, 'fixtures', path) } return join(root(), 'server', 'tests', 'fixtures', path) -- cgit v1.2.3