config.yml 691 B

123456789101112131415161718192021222324252627282930313233
  1. version: 2.0
  2. jobs:
  3. build:
  4. docker:
  5. - image: circleci/node:10.16-browsers
  6. steps:
  7. - checkout
  8. - restore_cache:
  9. keys:
  10. - v1-dependencies-{{ checksum "package.json" }}
  11. - v1-dependencies-
  12. - run: npm install
  13. - save_cache:
  14. paths:
  15. - node_modules
  16. key: v1-dependencies-{{ checksum "package.json" }}
  17. - run: npm run build:umd
  18. - run:
  19. name: Compatibility Test
  20. command: |
  21. if [ -z "$CIRCLE_PR_NUMBER" ];
  22. then
  23. npm run test:compat
  24. fi
  25. - run: npm run test
  26. - store_test_results:
  27. path: /tmp/test-results