2018-07-20 23:00:13 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2020-06-17 20:58:25 +00:00
|
|
|
- image: circleci/node:13-browsers
|
2018-07-20 23:00:13 +00:00
|
|
|
environment:
|
|
|
|
CHROME_BIN: "/usr/bin/google-chrome"
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Update npm
|
|
|
|
command: 'sudo npm install -g npm@latest'
|
|
|
|
- restore_cache:
|
2020-08-10 16:47:04 +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:
|
2020-08-10 16:47:04 +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
|