diff --git a/.circleci/config.yml b/.circleci/config.yml index 75e5d76d..dbfd56f7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,33 +1,7 @@ version: 2.1 -jobs: - build-test: - docker: - # specify the version you desire here - - image: circleci/node:12 - - steps: - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: curl -o- -L https://yarnpkg.com/install.sh | bash - - run: yarn install - - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - # run tests! - - run: yarn test - - run: yarn build - +orbs: + node: circleci/node@3.0.0 workflows: node-tests: jobs: - - build-test + - node/test