File tree Expand file tree Collapse file tree 2 files changed +44
-31
lines changed Expand file tree Collapse file tree 2 files changed +44
-31
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ jobs :
3+ build :
4+ working_directory : ~/workspace
5+ docker :
6+ - image : circleci/node:8.9.4
7+ steps :
8+ - checkout
9+ - run :
10+ name : Configure Git
11+ command : |
12+ git config --global user.name 'CircleCI'
13+ git config --global user.email 's+circleci@sugarshin.net'
14+ - restore_cache :
15+ name : Restoring Cache - dependencies
16+ keys :
17+ - v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
18+ - v1-dependencies-
19+ - run :
20+ name : System information
21+ command : |
22+ echo "Node.js $(node -v)"
23+ echo "npm $(npm -v)"
24+ echo "Yarn v$(yarn --version)"
25+ - run :
26+ name : Install dependencies
27+ command : yarn
28+ - run :
29+ name : Tests
30+ command : |
31+ npm run lint
32+ npm run type
33+ npm run test:coverage:report
34+ - save_cache :
35+ paths :
36+ - ~/workspace/node_modules
37+ - ~/.cache/yarn/
38+ key : v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
39+ - deploy :
40+ command : |
41+ if [ "${CIRCLE_BRANCH}" == "master" ]; then
42+ npm run build:demo
43+ npm run deploy
44+ fi
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments