You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "kou (via GitHub)" <gi...@apache.org> on 2023/06/29 13:47:58 UTC

[GitHub] [arrow] kou commented on a diff in pull request #36373: GH-36154: [JS][CI] Use `jest` cache in CI

kou commented on code in PR #36373:
URL: https://github.com/apache/arrow/pull/36373#discussion_r1246647006


##########
.github/workflows/js.yml:
##########
@@ -90,6 +90,14 @@ jobs:
         uses: actions/checkout@v3
         with:
           fetch-depth: 0
+      - name: Jest Cache
+        uses: actions/cache@v3
+        with:
+          path: js/.jest-cache
+          key: js-jest-cache-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('js/yarn.lock') }}
+          restore-keys: |
+            js-jest-cache-${{ runner.os }}-${{ matrix.node-version }}-
+            js-jest-cache-${{ runner.os }}-

Review Comment:
   Do we need this?
   (Can we reuse cache for different Node.js version?)



##########
.github/workflows/js.yml:
##########
@@ -90,6 +90,14 @@ jobs:
         uses: actions/checkout@v3
         with:
           fetch-depth: 0
+      - name: Jest Cache
+        uses: actions/cache@v3
+        with:
+          path: js/.jest-cache
+          key: js-jest-cache-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('js/yarn.lock') }}

Review Comment:
   ```suggestion
             key: js-jest-cache-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('js/yarn.lock') }}
   ```



##########
.github/workflows/js.yml:
##########
@@ -90,6 +90,14 @@ jobs:
         uses: actions/checkout@v3
         with:
           fetch-depth: 0
+      - name: Jest Cache
+        uses: actions/cache@v3
+        with:
+          path: js/.jest-cache
+          key: js-jest-cache-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('js/yarn.lock') }}
+          restore-keys: |
+            js-jest-cache-${{ runner.os }}-${{ matrix.node-version }}-

Review Comment:
   ```suggestion
               js-jest-cache-${{ runner.os }}-${{ matrix.node }}-
   ```



##########
.github/workflows/js.yml:
##########
@@ -114,6 +122,14 @@ jobs:
         uses: actions/checkout@v3
         with:
           fetch-depth: 0
+      - name: Jest Cache
+        uses: actions/cache@v3
+        with:
+          path: js/.jest-cache
+          key: js-jest-cache-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('js/yarn.lock') }}
+          restore-keys: |
+            js-jest-cache-${{ runner.os }}-${{ matrix.node-version }}-

Review Comment:
   ```suggestion
             key: js-jest-cache-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('js/yarn.lock') }}
             restore-keys: |
               js-jest-cache-${{ runner.os }}-${{ matrix.node }}-
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org