From a3a0f251e23795d0091399371c9404a5b1e1af6a Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Fri, 15 Feb 2019 09:10:20 -0200 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e145a88..78c4e41 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,16 +1,15 @@ version: 2 jobs: build: - working_directory: /usr/src/app docker: - - image: banian/node + - image: circleci/node steps: # Checkout repository - checkout # Restore cache - restore_cache: - key: yarn-{{ checksum "yarn.lock" }} + key: yarn-cache-{{ checksum "yarn.lock" }} # Install dependencies - run: @@ -19,14 +18,19 @@ jobs: # Keep cache - save_cache: - key: yarn-{{ checksum "yarn.lock" }} + key: yarn-cache-{{ checksum "yarn.lock" }} paths: - "node_modules" - # Test + # Lint + - run: + name: Lint + command: yarn lint + + # Tests - run: name: Tests - command: yarn test + command: yarn jest # Coverage - run: