From 0a659289265dc79283017cc4b21f018d621e0f49 Mon Sep 17 00:00:00 2001 From: MTLantoine Date: Tue, 3 Nov 2020 15:34:41 +0100 Subject: [PATCH] restart --- .circleci/config.yml | 56 ++++++-------------------------------------- 1 file changed, 7 insertions(+), 49 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b82cf66..9b2332b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,64 +2,22 @@ version: 2.1 jobs: build: docker: &shared_docker - - image: cimg/node:14.10.1 # the primary container, where your job's commands are run - auth: - username: mydockerhub-user - password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + - image: circleci/node:12 steps: - checkout # check out the code in the project directory - restore_cache: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - run: yarn global add node-gyp && yarn install - lint: - docker: *shared_docker - steps: - - checkout # check out the code in the project directory - - restore_cache: - keys: - - npm-v1-dependencies-{{ checksum "yarn.lock" }} - - run: yarn global add node-gyp && yarn install && yarn lint && yarn format:check - test: - docker: *shared_docker - steps: - - checkout # check out the code in the project directory - - restore_cache: - keys: - - npm-v1-dependencies-{{ checksum "yarn.lock" }} - - run: yarn global add node-gyp && yarn install && yarn test:ci - - bddPostgres: - docker: - - image: cimg/node:12.18.4 - environment: - DATABASE_URL: postgres://psqluser:password@localhost:5432/psdb - JWT_SECRET: some string - API_HOST: localhost - API_PROTOCOL: http - API_PORT: 3000 - - image: circleci/postgres:9.6.2-alpine - environment: - POSTGRES_USER: psqluser - POSTGRES_DB: psdb - POSTGRES_PASSWORD: password - steps: - - checkout - - restore_cache: - keys: - - npm-v6-dependencies-{{ checksum "yarn.lock" }} - - run: yarn test:e2e - documentation: - docker: *shared_docker - steps: - - checkout - - run: yarn buld:dock + - save_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + path: + - ./node_modules + # lint: + # docker: *shared_docker workflows: version: 2 build_test: jobs: - build - - lint - - test - - bddPostgres