From ee61ef6edf0c80b1ceeaf0227902db8831fca91e Mon Sep 17 00:00:00 2001 From: Morgan <47953421+MorganLmd@users.noreply.github.com> Date: Mon, 2 Nov 2020 16:09:29 +0100 Subject: [PATCH] tp step 5 test... --- .circleci/config.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 24eb813..ad8efc8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,13 +4,13 @@ commands: restore_cache_cmd: steps: - restore_cache: - key: yarn-v2-packages-{{ checksum "yarn.lock" }} + key: yarn-v3-packages-{{ checksum "yarn.lock" }} save_cache_cmd: steps: - save_cache: paths: - ./node_modules - key: yarn-v2-packages-{{ checksum "yarn.lock" }} + key: yarn-v3-packages-{{ checksum "yarn.lock" }} jobs: build1: @@ -49,18 +49,16 @@ jobs: name: "test unitaires" - save_cache_cmd - database: + database1: docker: - image: "circleci/node:12" + - image: "circleci/postgres:9.6.2-alpine" environment: DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb - JWT_SECRET: some string yo want + JWT_SECRET: some string you want API_PORT: 3000 API_HOST: localhost API_PROTOCOL: http - - - image: "circleci/postgres:9.6.2-alpine" - environment: POSTGRES_USER: psqluer POSTGRES_PASSWORD: psqlpassword POSTGRES_DB: psdb @@ -86,7 +84,7 @@ workflows: requires: - build1 - - database: + - database1: requires: - build1 - lint1