File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 2424 - name : Install dependencies
2525 run : npm ci
2626
27+ # https://github.com/microsoft/playwright/issues/7249#issuecomment-1385567519
28+ - name : Store Playwright's Version
29+ run : |
30+ PLAYWRIGHT_VERSION=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')
31+ echo "Playwright's Version: $PLAYWRIGHT_VERSION"
32+ echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV
33+
34+ - name : Cache Playwright Browsers for Playwright's Version
35+ id : cache-playwright-browsers
36+ uses : actions/cache@v4
37+ with :
38+ path : ~/.cache/ms-playwright
39+ key : playwright-browsers-${{ env.PLAYWRIGHT_VERSION }}
40+
41+ - name : Setup Playwright
42+ if : steps.cache-playwright-browsers.outputs.cache-hit != 'true'
43+ run : npx playwright install --with-deps
44+
2745 - name : Install Playwright Browsers
2846 run : npx playwright install --with-deps
2947
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export default defineConfig({
99 timeout : 60 * 1000 ,
1010 reuseExistingServer : ! process . env . CI
1111 } ,
12+ workers : process . env . GITHUB_ACTIONS ? 1 : undefined ,
1213 projects : [
1314 {
1415 name : 'Chrome Desktop' ,
You can’t perform that action at this time.
0 commit comments