Browse Source

👷 add CI

main
Straw-Etiam 6 years ago
parent
commit
94cd7830f0
  1. 52
      .circleci/config.yml

52
.circleci/config.yml

@ -1,7 +1,49 @@
version: 2.1
orbs:
node: circleci/node@3.0.0
version: 2
jobs:
install-dependencies:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
- dependencies-
- run: yarn global add node-gyp && yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
build:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
- dependencies-
- run: yarn build
- run:
name: Copy deployment artifacts to workspace
command: |
cp dist/ /tmp/dist -r
- store_artifacts:
path: /tmp/dist
- persist_to_workspace:
root: /tmp
paths:
- dist
workflows:
node-tests:
version: 2
build-deploy_frontend:
jobs:
- node/test
- install-dependencies
- build:
requires:
- install-dependencies
Loading…
Cancel
Save