Yield generated for b4f7dce3-207b-428b-af1e-afdee9045ea1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

59 lines
1.4 KiB

version: 2.1
jobs:
Installation:
docker:
- image: circleci/node:12.9-browsers
steps:
- checkout
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- yarn-packages
- run: yarn global add node-gyp && yarn install
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
paths:
- node_modules
Test:
docker:
- image: circleci/node:12.9-browsers
steps:
- checkout
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run:
name: Test
command: yarn test
Build Docker:
docker:
- image: circleci/node:12.9-browsers
steps:
- checkout
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run:
name: Build
command : yarn run build
- run:
name: Copy to worspace
command: |
cp dist/ /tmp/dist -r
- store_artifacts:
path: /tmp/dist
- persist_to_workspace:
root: /tmp
paths:
- dist
workflows:
Build_Test_N_Deploy:
jobs:
- Installation
- Test
- Build Docker:
requires:
- Installation