From ee9a5c2945095dbff05fdd2ee78446da61d7fa7b Mon Sep 17 00:00:00 2001 From: tuutti Date: Fri, 19 Jan 2024 09:24:05 +0200 Subject: [PATCH] UHF-8762: Different cwd --- .github/workflows/visual.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/visual.yml b/.github/workflows/visual.yml index 7c8898a68..e79e99ad5 100644 --- a/.github/workflows/visual.yml +++ b/.github/workflows/visual.yml @@ -59,8 +59,9 @@ jobs: - name: Run tests run: | - NODE_VERSION=$(cat .nvmrc 2>/dev/null) - docker run --rm --name helfi-node -v $(pwd):/app -w /app node:$NODE_VERSION npm install - docker run --rm --name helfi-node -v $(pwd):/app -w /app node:$NODE_VERSION npm run fast-reference - docker run --rm --name helfi-node -v $(pwd):/app -w /app node:$NODE_VERSION npm run fast-test + NODE_VERSION=$(cat $THEME_DIR/.nvmrc 2>/dev/null) + THEME_CWD=/app/public/themes/contrib/$THEME_NAME + docker run --rm --name helfi-node -v $(pwd):/app -w $THEME_CWD node:$NODE_VERSION npm install + docker run --rm --name helfi-node -v $(pwd):/app -w $THEME_CWD node:$NODE_VERSION npm run fast-reference + docker run --rm --name helfi-node -v $(pwd):/app -w $THEME_CWD node:$NODE_VERSION npm run fast-test