Browse Source

👷 update config.yml

main
lamya-rey 6 years ago
parent
commit
bfb18887ad
  1. 18
      .circleci/config.yml

18
.circleci/config.yml

@ -15,6 +15,18 @@ jobs:
- node_modules - node_modules
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
test:
docker:
- image: circleci/node:12
steps:
- checkout
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run:
name: run test
command: |
yarn test
server-build: server-build:
docker: docker:
- image: circleci/node:12 - image: circleci/node:12
@ -23,7 +35,8 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run: yarn doc:build
- run: |
yarn run build
- run: - run:
name: Copy build to workspace name: Copy build to workspace
command: | command: |
@ -71,6 +84,9 @@ workflows:
build-deploy: build-deploy:
jobs: jobs:
- build - build
- test:
requires:
- build
- server-build: - server-build:
requires: requires:
- build - build

Loading…
Cancel
Save