File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 working-directory : website
8282 run : npm ci
8383
84+ - name : Get Playwright version
85+ id : playwright-version
86+ working-directory : website
87+ run : echo "version=$(npm ls @playwright/test --json | jq -r '.dependencies["@playwright/test"].version')" >> $GITHUB_OUTPUT
88+
89+ - name : Cache Playwright browsers
90+ uses : actions/cache@v4
91+ id : playwright-cache
92+ with :
93+ path : ~/.cache/ms-playwright
94+ key : playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
95+
96+ - name : Install Playwright browsers
97+ if : steps.playwright-cache.outputs.cache-hit != 'true'
98+ working-directory : website
99+ run : npx playwright install --with-deps chromium
100+
101+ - name : Install Playwright deps only (cached)
102+ if : steps.playwright-cache.outputs.cache-hit == 'true'
103+ run : npx playwright install-deps chromium
104+
84105 - name : Run website tests
85106 working-directory : website
86- run : bash scripts/ test.sh
107+ run : npm test
You can’t perform that action at this time.
0 commit comments