Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Feb 20, 2024
1 parent 1be9b16 commit a5753bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ commands:
description: 'Set to true if you intend to use any browser (e.g. with playwright).'

steps:
- restore_cache:
name: Restore pnpm Package Cache
keys:
- pnpm-packages-{{ checksum "pnpm-lock.yaml" }}

- when:
condition: << parameters.browsers >>
steps:
Expand All @@ -37,6 +42,8 @@ commands:
# See https://stackoverflow.com/a/73411601
- run: corepack enable --install-directory ~/bin

- run: pnpm config set store-dir .pnpm-store

- when:
condition: << parameters.browsers >>
steps:
Expand Down Expand Up @@ -65,6 +72,12 @@ commands:
name: Install playwright browsers
command: pnpm playwright install --with-deps

- save_cache:
name: Save pnpm Package Cache
key: pnpm-packages-{{ checksum "pnpm-lock.yaml" }}
paths:
- .pnpm-store

- save_cache:
name: Save playwright cache
key: v5-playwright-{{ arch }}-{{ checksum "/tmp/playwright_info.json" }}
Expand Down

0 comments on commit a5753bb

Please sign in to comment.