From bfb18887adeab50b03a752474002a666e2b151b0 Mon Sep 17 00:00:00 2001 From: lamya-rey <61109480+lamya-rey@users.noreply.github.com> Date: Sun, 17 Jan 2021 19:52:35 +0100 Subject: [PATCH] :construction_worker: update config.yml --- .circleci/config.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d069b79..0c910e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,18 @@ jobs: - node_modules key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} + test: + docker: + - image: circleci/node:12 + steps: + - checkout + - restore_cache: + keys: + - yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} + - run: + name: run test + command: | + yarn test server-build: docker: - image: circleci/node:12 @@ -23,7 +35,8 @@ jobs: - restore_cache: keys: - yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - - run: yarn doc:build + - run: | + yarn run build - run: name: Copy build to workspace command: | @@ -71,6 +84,9 @@ workflows: build-deploy: jobs: - build + - test: + requires: + - build - server-build: requires: - build