Update config.yml

master
Ricardo Gobbo de Souza 2019-02-15 09:10:20 -02:00 committed by Pooya Parsa
parent dbb79bbcaf
commit a3a0f251e2
1 changed files with 10 additions and 6 deletions

View File

@ -1,16 +1,15 @@
version: 2 version: 2
jobs: jobs:
build: build:
working_directory: /usr/src/app
docker: docker:
- image: banian/node - image: circleci/node
steps: steps:
# Checkout repository # Checkout repository
- checkout - checkout
# Restore cache # Restore cache
- restore_cache: - restore_cache:
key: yarn-{{ checksum "yarn.lock" }} key: yarn-cache-{{ checksum "yarn.lock" }}
# Install dependencies # Install dependencies
- run: - run:
@ -19,14 +18,19 @@ jobs:
# Keep cache # Keep cache
- save_cache: - save_cache:
key: yarn-{{ checksum "yarn.lock" }} key: yarn-cache-{{ checksum "yarn.lock" }}
paths: paths:
- "node_modules" - "node_modules"
# Test # Lint
- run:
name: Lint
command: yarn lint
# Tests
- run: - run:
name: Tests name: Tests
command: yarn test command: yarn jest
# Coverage # Coverage
- run: - run: