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