version: 2

jobs:
  build:
    docker:
      - image: circleci/node:11
      - image: circleci/mongo:3
      - image: circleci/redis:4
      - image: circleci/postgres:10.7
        environment:
          POSTGRES_USER: accounts-js
          POSTGRES_DB: accounts-js-tests-e2e
    steps:
      - checkout
      - run: yarn install --frozen-lockfile
      - run: yarn run lerna bootstrap
      - run: yarn test
      - run: yarn codecov
      - run: cd examples/react-rest-typescript && yarn install --frozen-lockfile && yarn test
      - run: cd examples/rest-express-typescript && yarn install --frozen-lockfile && yarn test
      - run: cd examples/react-graphql-typescript && yarn install --frozen-lockfile && yarn test
      - run: cd examples/graphql-server-typescript && yarn install --frozen-lockfile && yarn test

version: 2

jobs:
  build:
    docker:
      - image: circleci/node:11
      - image: circleci/mongo:3
      - image: circleci/redis:4
      - image: circleci/postgres:10.8
        environment:
          POSTGRES_USER: accounts-js
          POSTGRES_DB: accounts-js-tests-e2e
    steps:
      - checkout
      - run: yarn install --frozen-lockfile
      - run: yarn run lerna bootstrap
      - run: yarn test
      - run: yarn codecov
      - run: cd examples/react-rest-typescript && yarn install --frozen-lockfile && yarn test
      - run: cd examples/rest-express-typescript && yarn install --frozen-lockfile && yarn test
      - run: cd examples/react-graphql-typescript && yarn install --frozen-lockfile && yarn test
      - run: cd examples/graphql-server-typescript && yarn install --frozen-lockfile && yarn test

Update circleci/postgres Docker tag to v10.8
Update circleci/postgres Docker tag to v10.8
