@@ -26,15 +26,24 @@ jobs:
2626 persist-credentials : false
2727 repository : element-hq/element-web
2828
29- - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
29+ - uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
3030 with :
3131 cache : " yarn"
3232 node-version : " lts/*"
3333
34+ - name : Install element web dependencies
35+ run : yarn install --frozen-lockfile
36+
37+ - name : Build Element Web resources
38+ # Needed to prepare language files
39+ run : " yarn build:res"
40+
3441 - name : Install dependencies
42+ working-directory : packages/shared-components
3543 run : yarn install --frozen-lockfile
3644
3745 - name : Get installed Playwright version
46+ working-directory : packages/shared-components
3847 id : playwright
3948 run : echo "version=$(yarn list --pattern @playwright/test --depth=0 --json --non-interactive --no-progress | jq -r '.data.trees[].name')" >> $GITHUB_OUTPUT
4049
@@ -46,25 +55,22 @@ jobs:
4655 key : ${{ runner.os }}-${{ runner.arch }}-playwright-${{ steps.playwright.outputs.version }}-onlyshell
4756
4857 - name : Install Playwright browsers
58+ working-directory : packages/shared-components
4959 if : steps.playwright-cache.outputs.cache-hit != 'true'
5060 run : " yarn playwright install --with-deps --only-shell"
5161
52- - name : Build Element Web resources
53- # Needed to prepare language files
54- run : " yarn build:res"
55-
5662 - name : Build storybook dependencies
5763 # When the first test is ran, it will fail because the dependencies are not yet built.
5864 # This step is to ensure that the dependencies are built before running the tests.
59- run : " yarn test:storybook:ci"
65+ run : " yarn --cwd packages/shared-components test:storybook:ci"
6066 continue-on-error : true
6167
6268 - name : Run Visual tests
63- run : " yarn test:storybook:ci"
69+ run : " yarn --cwd packages/shared-components test:storybook:ci"
6470
6571 - name : Upload received images & diffs
6672 if : always()
6773 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
6874 with :
6975 name : received-images
70- path : playwright/shared-component-received
76+ path : packages/shared-components/ playwright/shared-component-received
0 commit comments