2018-07-20 23:00:13 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:8-browsers
|
|
|
|
environment:
|
|
|
|
CHROME_BIN: "/usr/bin/google-chrome"
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Update npm
|
|
|
|
command: 'sudo npm install -g npm@latest'
|
|
|
|
- restore_cache:
|
2018-08-07 21:47:50 +00:00
|
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
2018-07-20 23:00:13 +00:00
|
|
|
- run:
|
|
|
|
name: Installing dependencies (npm install)
|
|
|
|
command: npm install
|
|
|
|
- save_cache:
|
2018-08-07 21:47:50 +00:00
|
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
2018-07-20 23:00:13 +00:00
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
- run:
|
2020-04-30 23:57:53 +00:00
|
|
|
name: npm run test:coverage
|
|
|
|
command: npm run test:coverage
|
2018-07-20 23:00:13 +00:00
|
|
|
- run:
|
|
|
|
name: npm run lint
|
|
|
|
command: npm run lint
|
|
|
|
- store_artifacts:
|
|
|
|
path: dist
|
|
|
|
prefix: dist
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
test:
|
|
|
|
jobs:
|
|
|
|
- build
|