alex-cory/use-ssr

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version: 2
jobs:
  test:
    docker:
      - image: circleci/node:12.16.1
    environment:
      - NODE_ENV: test
    working_directory: ~/use-ssr
    steps:
      - checkout
      - restore_cache:
          key: use-ssr-yarn-{{ checksum "yarn.lock" }}
      - run:
          name: Yarn Install
          command: |
            yarn install
      - save_cache:
          key: use-ssr-yarn-{{ checksum "yarn.lock" }}
          paths:
            - ~/use-ssr/node_modules
      - run:
          name: Run JS Tests
          command: yarn test
workflows:
  version: 2
  build_and_test:
    jobs:
      - test