Skip to content

Instantly share code, notes, and snippets.

@NickFoden
Created January 23, 2019 03:38
Show Gist options
  • Save NickFoden/05eebc705dc211a40570c4318731a42b to your computer and use it in GitHub Desktop.
Save NickFoden/05eebc705dc211a40570c4318731a42b to your computer and use it in GitHub Desktop.
Circle Ci Setup
version: 2
jobs:
build:
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Setup Dependencies
command: yarn
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: # run tests
name: Run Test and Coverage
command: |
npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment