]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
ci: move chrome cache restore to before pnpm install
authorEvan You <yyx990803@gmail.com>
Mon, 14 Nov 2022 11:23:51 +0000 (19:23 +0800)
committerEvan You <yyx990803@gmail.com>
Mon, 14 Nov 2022 11:23:51 +0000 (19:23 +0800)
.github/workflows/ci.yml

index daad5609d124054f1381147d02751e903a1c3467..c811c0b8214ae666c42269ad99f2de17454e5214 100644 (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