Skip to content

Commit

Permalink
Caching node dependencies for cypress #96
Browse files Browse the repository at this point in the history
  • Loading branch information
tillias committed Nov 8, 2020
1 parent 3b7e3c4 commit 1a0167b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,30 @@ jobs:
- image: cypress/browsers:node12.14.1-chrome83-ff77
steps:
- checkout
- restore_cache:
keys:
- v1-cypress-dependencies-{{ checksum "package-lock.json" }}
# Perform a Partial Cache Restore (https://circleci.com/docs/2.0/caching/#restoring-cache)
- v1-cypress-dependencies-
- run:
name: Install Node Modules
command: 'npm install'
- run:
name: cypress run
command: 'npm run cypress'
- save_cache:
paths:
- node
- node_modules
key: v1-cypress-dependencies-{{ checksum "package-lock.json" }}

workflows:
test-cypress:
build:
jobs:
- build:
filters:
branches:
only: master
cypress-e2e:
jobs:
- cypress

0 comments on commit 1a0167b

Please sign in to comment.