config.yml 569 B

123456789101112131415161718192021222324252627
  1. version: 2
  2. jobs:
  3. build:
  4. docker:
  5. - image: circleci/node:7.10
  6. working_directory: ~/repo
  7. steps:
  8. - checkout
  9. # Download and cache dependencies
  10. - restore_cache:
  11. keys:
  12. - v1-dependencies-{{ checksum "package.json" }}
  13. # fallback to using the latest cache if no exact match is found
  14. - v1-dependencies-
  15. - run: yarn install
  16. - save_cache:
  17. paths:
  18. - node_modules
  19. key: v1-dependencies-{{ checksum "package.json" }}
  20. # run tests!
  21. - run: yarn test