From b89fffdd2da8ebb4604a5a1584087b908145cbe2 Mon Sep 17 00:00:00 2001 From: Galimede Date: Mon, 2 Nov 2020 18:12:55 +0100 Subject: [PATCH] test another node version --- .circleci/config.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dfb6da9..8585e7b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: build: docker: - - image: cimg/node:14.10.1 + - image: cimg/node:12 steps: - checkout - restore_cache: @@ -14,7 +14,7 @@ jobs: - ./node_modules check_format: docker: - - image: cimg/node:14.10.1 + - image: circleci steps: - checkout - restore_cache: @@ -30,7 +30,7 @@ jobs: - run : yarn test:ci test_e2e: docker: - - image: cimg/node:14.10.1 + - image: cimg/node:12 - image: circleci/postgres environment: POSTGRES_USER: e2e @@ -40,15 +40,18 @@ jobs: - checkout - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} + - run: + name: Waiting for POSTGRES + command: dockerize -wait tcp://localhost:5432 -timeout 1m - run: name: Launching e2e test + command: yarn test:e2e environment: DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb" API_PORT: 3000 API_HOST: "localhost" API_PROTOCOL: "http" JWT_SECRET: "youwontguess" - command: yarn test:e2e workflows: @@ -63,4 +66,4 @@ workflows: - build - test_e2e: requires: - - build \ No newline at end of file + - build