Skip to content

Commit

Permalink
refactor: ♻️ Update Cypress workflows to cache node modules, Cypress …
Browse files Browse the repository at this point in the history
…binary, and improve performance
  • Loading branch information
singhAmandeep007 committed Oct 3, 2024
1 parent 8dabb1b commit d7b2da3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7b2da3

Please sign in to comment.