From c7c093e54678ba1da43efe6350c9a333376d8fa4 Mon Sep 17 00:00:00 2001 From: abouhanifa Date: Sun, 28 Mar 2021 15:05:15 +0200 Subject: [PATCH] :wrench: add check format command --- .circleci/config.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fb00d27..4ec67da 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,9 +22,28 @@ jobs: - node_modules key: v1-dependencies-{{ checksum "package.json" }} - run: yarn run test + check:format : + docker: + - image: node:10.18.0 + working_directory: ~/repo + + steps: + - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + - v1-dependencies- + + - run: yarn install + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} + - run: yarn format:write && yarn format:check workflows: project_workflows: jobs: - - test \ No newline at end of file + - test + - check:format \ No newline at end of file