version: 2.1 orbs: node: circleci/node@3.0.0 workflows: tests: jobs: - helloworld - install_yarn jobs: helloworld: docker: - image: circleci/node:12 steps: - checkout - run: echo "hello world" install_yarn: docker: - image: circleci/node:12 steps: - restore cache: key: yarn-packages-{{ checksum "yarn.lock" }} - run: yarn global add node-gyp - run: yarn install - save cache: key: yarn-packages-{{ checksum "yarn.lock" }} path: - ./node_modules