From f3e4f038bf299794b2ca4750b4678074660113c8 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 14 Nov 2022 19:23:51 +0800 Subject: [PATCH] ci: move chrome cache restore to before pnpm install --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index daad5609d12..c811c0b8214 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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