Browse Source

🔧 fix netlify deploy command and separate check format job

main
hallouma875 5 years ago
parent
commit
76d639f394
  1. 18
      .circleci/config.yml

18
.circleci/config.yml

@ -13,9 +13,7 @@ aliases:
install_node_modules: &install_node_modules install_node_modules: &install_node_modules
run: run:
command: yarn install command: yarn install
check_formatting: &check_formatting
run:
command: yarn add --dev --exact prettier && yarn format:write && yarn format:check
save_cache: &save_cache save_cache: &save_cache
save_cache: save_cache:
key: yarn-cache-netlify-{{ checksum "yarn.lock" }} key: yarn-cache-netlify-{{ checksum "yarn.lock" }}
@ -37,12 +35,20 @@ jobs:
- run: - run:
name: Test name: Test
command: yarn run test command: yarn run test
check_format:
executor: node
steps:
- checkout
- <<: *restore_cache
- <<: *install_node_modules
- <<: *save_cache
- run:
name: Test
command: yarn add --dev --exact prettier && yarn format:write && yarn format:check
build: build:
executor: node executor: node
steps: steps:
- checkout - checkout
- <<: *check_formatting
- <<: *restore_cache - <<: *restore_cache
- <<: *install_node_modules - <<: *install_node_modules
- run: - run:
@ -65,7 +71,7 @@ jobs:
command: yarn global add netlify-cli command: yarn global add netlify-cli
- run: - run:
name: Deploy to Netlify name: Deploy to Netlify
command: yarn run build && npm run netlify:deploy
command: yarn run build && yarn run netlify:deploy

Loading…
Cancel
Save