Browse Source

ci: cache chromium binary

Evan You 3 năm trước cách đây
mục cha
commit
bcc76e9395
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      .github/workflows/ci.yml

+ 7 - 1
.github/workflows/ci.yml

@@ -46,6 +46,12 @@ 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
 
@@ -69,7 +75,7 @@ jobs:
         run: pnpm run lint
 
       # - name: Run prettier
-        # run: pnpm run format-check
+      # run: pnpm run format-check
 
       - name: Run type declaration tests
         run: pnpm run test-dts