Skip to content

Commit 209b917

Browse files
committed
chore: actions: playwrite: cache
1 parent 05caf53 commit 209b917

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/nodejs.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ jobs:
4242
message: "chore: ${{ env.NAME }}: actions: lint ☘️"
4343
- name: Build
4444
run: redrun build
45+
- name: Get Playwright version
46+
id: playwright-version
47+
run: echo "version=$(npx playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
48+
working-directory: packages/client
49+
- name: Cache Playwright browsers
50+
uses: actions/cache@v4
51+
id: playwright-cache
52+
with:
53+
path: ~/.cache/ms-playwright
54+
key: playwright-${{ steps.playwright-version.outputs.version }}
55+
- name: Install Playwright browsers
56+
if: steps.playwright-cache.outputs.cache-hit != 'true'
4557
- name: Install Playwright browsers
4658
run: npx playwright install chromium --with-deps
4759
- name: Test E2E Client

0 commit comments

Comments
 (0)