File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,22 @@ jobs:
114114 - name : Install dependencies
115115 run : pnpm install --no-frozen-lockfile --ignore-scripts
116116
117+ - name : Get Playwright version
118+ id : playwright-version
119+ run : echo "version=$(jq -r '.devDependencies.playwright' package.json)" >> $GITHUB_OUTPUT
120+
121+ - name : Cache Playwright browsers
122+ uses : actions/cache@v4
123+ id : playwright-cache
124+ with :
125+ path : |
126+ ~/.cache/ms-playwright
127+ node_modules/.pnpm/playwright-core*/node_modules/playwright-core/.local-browsers
128+ key : ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
129+ restore-keys : |
130+ ${{ runner.os }}-playwright-
117131 - name : Install Playwright browsers
132+ if : steps.playwright-cache.outputs.cache-hit != 'true'
118133 run : pnpm exec playwright install chromium --with-deps --only-shell
119134
120135 - name : Build Storybook
You can’t perform that action at this time.
0 commit comments