Skip to content

Commit

Permalink
ci: move chrome cache restore to before pnpm install
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 14, 2022
1 parent 7b59f2a commit f3e4f03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -35,6 +35,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup cache for Chromium binary
uses: actions/cache@v3
with:
path: ~/.cache/puppeteer/chrome
key: chromium-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install pnpm
uses: pnpm/action-setup@v2

Expand All @@ -46,12 +52,6 @@ jobs:

- run: pnpm install

- name: Setup cache for Chromium binary
uses: actions/cache@v3
with:
path: ~/.cache/puppeteer/chrome
key: chromium-${{ hashFiles('pnpm-lock.yaml') }}

- name: Run e2e tests
run: pnpm run test-e2e

Expand Down

0 comments on commit f3e4f03

Please sign in to comment.