Explorar el Código

cache and restore .turbo dir

Yuki Takei hace 3 años
padre
commit
75ab09cead

+ 5 - 2
.github/workflows/ci-app.yml

@@ -58,6 +58,7 @@ jobs:
         uses: actions/cache@v3
         uses: actions/cache@v3
         with:
         with:
           path: |
           path: |
+            **/.turbo
             **/dist
             **/dist
           key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
           key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
           restore-keys: |
           restore-keys: |
@@ -115,10 +116,11 @@ jobs:
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
 
 
-      - name: Cache/Restore dist and
+      - name: Cache/Restore dist
         uses: actions/cache@v3
         uses: actions/cache@v3
         with:
         with:
           path: |
           path: |
+            **/.turbo
             **/dist
             **/dist
           key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
           key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
           restore-keys: |
           restore-keys: |
@@ -186,10 +188,11 @@ jobs:
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
             node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
 
 
-      - name: Cache/Restore dist and
+      - name: Cache/Restore dist
         uses: actions/cache@v3
         uses: actions/cache@v3
         with:
         with:
           path: |
           path: |
+            **/.turbo
             **/dist
             **/dist
           key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
           key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
           restore-keys: |
           restore-keys: |

+ 5 - 2
.github/workflows/ci-slackbot-proxy.yml

@@ -53,6 +53,7 @@ jobs:
       uses: actions/cache@v3
       uses: actions/cache@v3
       with:
       with:
         path: |
         path: |
+          **/.turbo
           **/dist
           **/dist
         key: dist-ci-slackbot-proxy-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         key: dist-ci-slackbot-proxy-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         restore-keys: |
         restore-keys: |
@@ -113,10 +114,11 @@ jobs:
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
 
 
-    - name: Cache/Restore dist and
+    - name: Cache/Restore dist
       uses: actions/cache@v3
       uses: actions/cache@v3
       with:
       with:
         path: |
         path: |
+          **/.turbo
           **/dist
           **/dist
         key: dist-ci-slackbot-proxy-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         key: dist-ci-slackbot-proxy-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         restore-keys: |
         restore-keys: |
@@ -202,10 +204,11 @@ jobs:
       run: |
       run: |
         yarn --frozen-lockfile
         yarn --frozen-lockfile
 
 
-    - name: Cache/Restore dist and
+    - name: Cache/Restore dist
       uses: actions/cache@v3
       uses: actions/cache@v3
       with:
       with:
         path: |
         path: |
+          **/.turbo
           **/dist
           **/dist
         key: dist-slackbot-proxy-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         key: dist-slackbot-proxy-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         restore-keys: |
         restore-keys: |

+ 2 - 1
.github/workflows/reusable-app-prod.yml

@@ -58,10 +58,11 @@ jobs:
       run: |
       run: |
         yarn --frozen-lockfile
         yarn --frozen-lockfile
 
 
-    - name: Cache/Restore dist and
+    - name: Cache/Restore dist
       uses: actions/cache@v3
       uses: actions/cache@v3
       with:
       with:
         path: |
         path: |
+          **/.turbo
           **/dist
           **/dist
         key: dist-app-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         key: dist-app-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
         restore-keys: |
         restore-keys: |