config.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Javascript Node CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-javascript/ for more details
  4. #
  5. version: 2
  6. jobs:
  7. build:
  8. docker:
  9. # specify the version you desire here
  10. - image: circleci/node:8.9.4
  11. # Specify service dependencies here if necessary
  12. # CircleCI maintains a library of pre-built images
  13. # documented at https://circleci.com/docs/2.0/circleci-images/
  14. # - image: circleci/mongo:3.4.4
  15. working_directory: ~/repo
  16. steps:
  17. - checkout
  18. # Download and cache dependencies
  19. - restore_cache:
  20. keys:
  21. - v1-dependencies-{{ checksum "package.json" }}
  22. # fallback to using the latest cache if no exact match is found
  23. - v1-dependencies-
  24. - run:
  25. name: Workaround for GoogleChrome/puppeteer#290
  26. command: 'sh .circleci/setup_puppeteer.sh'
  27. - run: yarn install
  28. - save_cache:
  29. paths:
  30. - node_modules
  31. key: v1-dependencies-{{ checksum "package.json" }}
  32. # run tests!
  33. - run: yarn lint
  34. - run: yarn test