version: 2.1 # use CircleCI 2.1 jobs: # a collection of steps build: # runs not using Workflows must have a `build` job as entry point working_directory: ~/gelato-instadapp-ci # directory where steps will run docker: # run the steps with Docker - image: circleci/node:12.16.2 # ...with this image as the primary container; this is where all `steps` will run steps: # a collection of executable commands - checkout # special step to check out source code to working directory - restore_cache: # special step to restore the dependency cache # Read about caching dependencies: https://circleci.com/docs/2.0/caching/ name: Restore Yarn Package Cache key: yarn-packages-{{ checksum "yarn.lock" }} - run: name: yarn install command: yarn install --frozen-lockfile - save_cache: # special step to save the dependency cache name: Save Yarn Package Cache key: yarn-packages-{{ checksum "yarn.lock" }} paths: - ./node_modules - run: # Compile name: Compile command: npx buidler compile - run: # Tests name: Tests using buidler-ganache mainnet fork command: npx buidler test # - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ # path: coverage # prefix: coverage # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples