From e4bdf9bb8765b4f17f5374e1f9ac67d8a19336f4 Mon Sep 17 00:00:00 2001 From: Anatole De Chauveron <54862351+Anatole-DC@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:42:08 +0200 Subject: [PATCH] Updated config.yml --- .circleci/config.yml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 573ce48..eccc8c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,9 +45,13 @@ jobs: - run: name: "yarn test" command: yarn test - - postgres: + + end_to_end_tests: docker: + - image: cimg/node:16.10.0 + auth: + username: adechauveron + password: $DOCKER_PASSWORD - image: circleci/postgres:9.6.2-alpine auth: username: adechauveron @@ -58,15 +62,10 @@ jobs: POSTGRES_PASSWORD: postgres steps: - checkout - - end_to_end_tests: - docker: - - image: cimg/node:16.10.0 - auth: - username: adechauveron - password: $DOCKER_PASSWORD - steps: - - checkout + - restore_cache: + keys: + - npm-v2-dependencies-{{ checksum "yarn.lock" }} + - npm-v2-dependencies- - run: name: "yarn test" command: yarn test:e2e @@ -81,10 +80,6 @@ workflows: - lint: requires: - build - - postgres: - requires: - - build - end_to_end_tests: requires: - - lint - - postgres + - build