File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 3939 path : |
4040 **/node_modules
4141 key : compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
42+ - name : Store Playwright version
43+ id : playwright_version
44+ run : |
45+ PLAYWRIGHT_VERSION=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')
46+ echo "Playwright's Version: $PLAYWRIGHT_VERSION"
47+ echo "playwright_version=$PLAYWRIGHT_VERSION" >> "$GITHUB_OUTPUT"
48+ - name : Cache Playwright Browsers for Playwright's Version
49+ id : cache_playwright_browsers
50+ uses : actions/cache@v4
51+ with :
52+ path : ~/.cache/ms-playwright
53+ key : playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }}
4254 - run : yarn install --frozen-lockfile
4355 - run : npx playwright install --with-deps chromium
56+ if : steps.cache_playwright_browsers.outputs.cache-hit != 'true'
4457 - run : CI=true yarn test
4558 - run : ls -R test-results
4659 if : ' !cancelled()'
You can’t perform that action at this time.
0 commit comments