diff --git a/.circleci/config.yml b/.circleci/config.yml index def4126..8696cfa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,6 +28,24 @@ jobs: - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - run : yarn test:ci + test_e2e: + docker: + - image: cimg/node:14.10.1 + - image: postgres:9.6-jessie + environment: + POSTGRES_USER: e2e + POSTGRES_DB: psdb + steps: + - checkout + - restore_cache: + key: yarn-packages-v2{{ checksum "yarn.lock" }} + - run: + command: yarn test:e2e + environment: + DATABASE_URL: postgres://$POSTGRES_USER@localhost:5432/$POSTGRES_DB + API_PORT: 3000 + API_HOST: localhost + API_PROTOCOL: http workflows: build_and_test: jobs: @@ -36,5 +54,8 @@ workflows: requires: - build - test: + requires: + - build + - test_e2e: requires: - build \ No newline at end of file