You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
442 B

version: 2
jobs:
build:
docker:
- image: circleci/node:10.16.3
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: node_modules-{{ checksum "package-lock.json" }}
- run: test -d node_modules || npm i
- save_cache:
key: node_modules-{{ checksum "package-lock.json" }}
paths:
- node_modules
# run tests!
- run: npm t || npm t