From d7b2da30fcd0725282ccb1cacaf82122432e901c Mon Sep 17 00:00:00 2001 From: singhAmandeep007 Date: Thu, 3 Oct 2024 21:39:51 +0530 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20Update=20Cypre?= =?UTF-8?q?ss=20workflows=20to=20cache=20node=20modules,=20Cypress=20binar?= =?UTF-8?q?y,=20and=20improve=20performance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cypress.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index cf77347..f96bfb3 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -26,14 +26,13 @@ jobs: - name: Cache node modules uses: actions/cache@v4 with: - path: ~/.npm + path: | + ~/.npm + ~/.cache/Cypress + node_modules key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - - - name: Cache Cypress binary - uses: actions/cache@v4 - with: - path: ~/.cache/Cypress - key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Install dependencies and verify Cypress # print Cypress and OS info