diff --git a/.circleci/config.yml b/.circleci/config.yml index 7f16746..f01e656 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,27 +1,28 @@ -version: 2.1 # Use version 2.1 to enable orb usage. +version: 2.1 -orbs: - win: circleci/windows@2.2.0 # The Windows orb give you everything you need to start using the Windows executor. +commands: + restore_cache_cmd: + steps: + - restore_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + save_cache_cmd: + steps: + - save_cache: + paths: + - ~/.cache/yarn + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} jobs: - build: # name of your job - executor: - name: win/default # executor type - size: "medium" # resource class, can be "medium", "large", "xlarge", "2xlarge", defaults to "medium" if not specified + build: + docker: + image: cimg/node:10.10.1 steps: - # Commands are run in a Windows virtual machine environment + - checkout - - save_cache: - paths: - - ~/.m2 - key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + - restore_cache_cmd - run: yarn global add node-gyp && yarn install - - - - - + - save_cache_cmd