ソースを参照

ci: move chrome cache restore to before pnpm install

Evan You 3 年 前
コミット
f3e4f038bf
1 ファイル変更6 行追加6 行削除
  1. 6 6
      .github/workflows/ci.yml

+ 6 - 6
.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