Skip to content

Commit e09e552

Browse files
authored
Merge pull request #27 from bartstc/chore/cache-playwright-deps
chore: cache playwright deps
2 parents e6cfaae + 8b3080e commit e09e552

3 files changed

Lines changed: 278 additions & 237 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
"storybook-addon-remix-react-router": "5.0.0",
8080
"typescript": "5.8.2",
8181
"typescript-eslint": "8.30.1",
82-
"vite": "7.0.1",
83-
"vite-plugin-checker": "0.9.3",
82+
"vite": "7.0.5",
83+
"vite-plugin-checker": "0.10.1",
8484
"vite-tsconfig-paths": "5.1.4",
8585
"vitest": "3.2.4",
8686
"wait-on": "7.2.0"

0 commit comments

Comments
 (0)