Skip to content

Commit

Permalink
ci: add .circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Feb 10, 2019
1 parent e9442c6 commit 6f60512
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2
jobs:
build:
docker:
- image: circleci/node
steps:
# Checkout repository
- checkout

# Restore cache
- restore_cache:
key: yarn-{{ checksum "yarn.lock" }}

# Install dependencies
- run:
name: Install Dependencies
command: NODE_ENV=dev yarn

# Keep cache
- save_cache:
key: yarn-{{ checksum "yarn.lock" }}
paths:
- "node_modules"

# Lint
- run:
name: Lint
command: yarn lint

# Test
- run:
name: Test
command: yarn test

# Coverage
- run:
name: Coverage
command: yarn codecov

0 comments on commit 6f60512

Please sign in to comment.