From dd3488e4acc2d0d9b424dc8cf7502c1ccf544d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anthony=20Qu=C3=A9r=C3=A9?= <47711333+Anthony-Jhoiro@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:52:34 +0200 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index fd58562..a58d3df 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,6 +61,35 @@ jobs: - run: name: Unit Tests command: yarn test + test-e2e: + docker: + - image: circleci/postgres:9.6-alpine + auth: + username: jhoiroerezame + password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + DEFAULT_DATABASE: psdb + - image: cimg/node:16.10.0 + auth: + username: anthonyjhoiro + password: $DOCKERHUB_PASSWORD + + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - npm-v1-lint-{{ .BuildNum }} + + - run: + name: Run e2e tests + environment: + POSTGRES_URL: postgres://postgres:postgres@localhost:5432/psdb + command: yarn test:e2e + + workflows: build-workflow: