Skip to content

Commit d0fa2ca

Browse files
committed
[CIRCLE_CI]: added same thing in both jobs
1 parent 7e3ab96 commit d0fa2ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,19 @@ jobs:
2525
- image: circleci/node:latest
2626
steps:
2727
- checkout
28+
# needed to add here also as both install and test are different docker instances and need to do same thing again in different instance
29+
- run:
30+
name: Update npm
31+
command: 'sudo npm install -g npm@latest'
32+
- restore_cache:
33+
key: dependency-cache-{{ checksum "package-lock.json" }}
2834
- run:
2935
name: Install npm dependencies
3036
command: npm install
37+
- save_cache:
38+
key: dependency-cache-{{ checksum "package-lock.json" }}
39+
paths:
40+
- node_modules
3141
- run:
3242
name: Test
3343
command: npm test

0 commit comments

Comments
 (0)