From ae3fd6bcaf9e650ed1603654dbe2ef715123e6e9 Mon Sep 17 00:00:00 2001 From: Haishan Date: Sat, 27 Oct 2018 17:08:25 +0800 Subject: [PATCH] ci: add circleci config.yml --- .circleci/config.yml | 33 +++++++++++++++++++++++++++++++++ src/components/StyleGuide.js | 4 ++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..00e09db --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,33 @@ +version: 2 +jobs: + build: + branches: + only: + - master + - dev + working_directory: ~/code + docker: + - image: circleci/node:10.12.0-stretch + steps: + - checkout + - restore_cache: + name: Restore Yarn Package Cache + keys: + - yarn-packages-{{ checksum "yarn.lock" }} + - run: + name: Install Dependencies + command: yarn install + - save_cache: + name: Save Yarn Package Cache + key: yarn-packages-{{ checksum "yarn.lock" }} + paths: + - ~/.cache/yarn + - run: + name: lint + command: yarn lint + - run: + name: build + command: yarn build + - store_artifacts: + path: public/report.html + prefix: '' diff --git a/src/components/StyleGuide.js b/src/components/StyleGuide.js index 0bb3813..e226ecf 100644 --- a/src/components/StyleGuide.js +++ b/src/components/StyleGuide.js @@ -7,7 +7,7 @@ import Switch from 'c/Switch'; import Button from 'c/Button'; // import Modal from 'c/Modal'; // import APIConfig from 'c/APIConfig'; -import Proxy2 from 'c/Proxy2'; +import Proxy from 'c/Proxy'; const paneStyle = { padding: '20px 0' @@ -38,7 +38,7 @@ class StyleGuide extends PureComponent { return (
- +