Skip to content

Commit 66388a1

Browse files
ci: cache browsers for browser examples
1 parent dd3c3e3 commit 66388a1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,13 @@ jobs:
909909
910910
- run: pnpm install
911911

912+
- name: Cache example browsers
913+
if: ${{ matrix.project.name == 'browser-p2-shims' || matrix.project.name == 'native-messaging' }}
914+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
915+
with:
916+
path: ~/.cache/puppeteer
917+
key: puppeteer-examples-${{ runner.os }}-${{ runner.arch }}-${{ matrix.project.name }}-${{ hashFiles('pnpm-lock.yaml', 'scripts/install-puppeteer.mjs') }}
918+
912919
- name: Install Puppeteer browser
913920
if: ${{ matrix.project.name == 'browser-p2-shims' || matrix.project.name == 'native-messaging' }}
914921
run: pnpm run test:setup:puppeteer

0 commit comments

Comments
 (0)