From 756b1c101f1e3598d4fedc862b1059d60975177c Mon Sep 17 00:00:00 2001
From: Ariya Hidayat <ariya@metabase.com>
Date: Tue, 7 Dec 2021 09:09:14 -0800
Subject: [PATCH] Percy CI: fix node_modules caching (#19243)

Since Cypress is need, we need to cache ~/.cache/Cypress as well.
---
 .github/workflows/percy.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/percy.yml b/.github/workflows/percy.yml
index bf5bb64b115..c19954cbc5e 100644
--- a/.github/workflows/percy.yml
+++ b/.github/workflows/percy.yml
@@ -105,11 +105,13 @@ jobs:
         with:
           path: ~/.cache/yarn
           key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
-      - name: Get node_modules cache
+      - name: Get node_modules and Cypress cache
         uses: actions/cache@v2
         with:
-          path: node_modules
-          key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
+          path: |
+            node_modules
+            ~/..cache/Cypress
+          key: ${{ runner.os }}-node-modules-cypress-${{ hashFiles('**/yarn.lock') }}
       - run: yarn install --frozen-lockfile --prefer-offline
 
       - uses: actions/download-artifact@v2
-- 
GitLab