ci: move chrome cache restore to before pnpm install

This commit is contained in:
Evan You 2022-11-14 19:23:51 +08:00
parent 7b59f2a012
commit f3e4f038bf
1 changed files with 6 additions and 6 deletions

View File

@ -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
@ -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