version: 2 jobs: build: docker: - image: circleci/node:latest steps: - checkout - run: name: update-npm command: 'sudo npm install -g npm@6' - restore_cache: key: dependency-cache-{{ checksum "package.json" }} - run: name: install-npm-wee command: npm install - save_cache: key: dependency-cache-{{ checksum "package.json" }} paths: - ./node_modules - run: name: test command: npm test - run: name: coverage command: npm run test:coverage && cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose