Skip to content

Commit

Permalink
include coverage and cache package json
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyCharlesBlake committed Mar 13, 2019
1 parent 1ac0bff commit 2ee504f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
key: v1-{{ checksum "package.json" }}
- run:
name: Install deps
command: npm install
- save_cache:
key: v1-{{ checksum "package-lock.json" }}
key: v1-{{ checksum "package.json" }}
paths:
- ./node_modules

Expand All @@ -26,7 +26,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
key: v1-{{ checksum "package.json" }}
- run:
name: Lint
command: npm run lint
Expand All @@ -36,7 +36,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
key: v1-{{ checksum "package.json" }}
- run:
name: Build dist
command: npm run build
Expand All @@ -46,17 +46,22 @@ jobs:
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
key: v1-{{ checksum "package.json" }}
- run:
name: Build dist
command: npm run coverage
- store_artifacts:
path: .coverage
- store_test_results:
path: .coverage


release:
executor: base-node
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
key: v1-{{ checksum "package.json" }}
- run:
name: Build dist
command: npx semantic-release
Expand Down

0 comments on commit 2ee504f

Please sign in to comment.