From db95ef5fd187f9139946d1f72c95674f28ba1e16 Mon Sep 17 00:00:00 2001 From: Neel Coffin Date: Mon, 2 Nov 2020 10:22:16 +0100 Subject: [PATCH] yml: add yarn command --- .circleci/config.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f3ceb9..d783e9d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2.1 jobs: - build: + cache: &shared-config docker: - image: cimg/node:14.10.1 steps: @@ -14,4 +14,15 @@ jobs: name: sa ve yarn package cache key: npm-v1-dependencies-{{ checksum "yarn.lock" }} paths: - - ~/.cache/yarn \ No newline at end of file + - ~/.cache/yarn + + lint: + <<: *shared-config + steps: + - checkout + - run: yarn lint && yarn format:check + unit-test: + <<: *shared-config + steps: + - checkout + - run: yarn test:ci \ No newline at end of file