File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 40
40
**/node_modules
41
41
key : compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
42
42
- run : yarn install --frozen-lockfile
43
+ - name : Check Playwright version
44
+ id : playwright_version
45
+ run : echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT"
46
+ - name : Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }}
47
+ id : cache_playwright_browsers
48
+ uses : actions/cache@v4
49
+ with :
50
+ path : ~/.cache/ms-playwright
51
+ key : playwright-browsers-v6-${{ runner.arch }}-${{ runner.os }}-${{ steps.playwright_version.outputs.playwright_version }}
43
52
- run : npx playwright install --with-deps chromium
53
+ if : steps.cache_playwright_browsers.outputs.cache-hit != 'true'
54
+ - run : npx playwright install-deps
55
+ if : steps.cache_playwright_browsers.outputs.cache-hit == 'true'
44
56
- run : CI=true yarn test
45
57
- run : ls -R test-results
46
58
if : ' !cancelled()'
Original file line number Diff line number Diff line change @@ -599,13 +599,10 @@ jobs:
599
599
if : steps.node_modules.outputs.cache-hit != 'true'
600
600
- run : yarn --cwd fixtures/flight install --frozen-lockfile
601
601
if : steps.node_modules.outputs.cache-hit != 'true'
602
- - name : Store Playwright version
602
+ - name : Check Playwright version
603
603
id : playwright_version
604
- run : |
605
- PLAYWRIGHT_VERSION=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')
606
- echo "Playwright's Version: $PLAYWRIGHT_VERSION"
607
- echo "playwright_version=$PLAYWRIGHT_VERSION" >> "$GITHUB_OUTPUT"
608
- - name : Cache Playwright Browsers for Playwright's Version
604
+ run : echo "playwright_version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//' | head -1)" >> "$GITHUB_OUTPUT"
605
+ - name : Cache Playwright Browsers for version ${{ steps.playwright_version.outputs.playwright_version }}
609
606
id : cache_playwright_browsers
610
607
uses : actions/cache@v4
611
608
with :
You can’t perform that action at this time.
0 commit comments