From 0c5bc4644a363f567b593dbe9b5db538d1c3fa17 Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Wed, 5 Feb 2020 13:45:10 -0800 Subject: [PATCH] split job steps into api and play --- .circleci/config.yml | 52 +++++++++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2dcd5db..007a15a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,24 +14,46 @@ jobs: # documented at https://circleci.com/docs/2.0/circleci-images/ # - image: circleci/mongo:3.4.4 - working_directory: ~/repo + working_directory: ~/node-go steps: - - checkout + - api: + path: ~/node-go/server + - checkout - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- - - run: yarn install + - run: yarn install - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} - # run tests! - - run: yarn test \ No newline at end of file + # run tests! + - run: yarn test + - play: + path: ~/node-go/play-node-go + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: yarn install + + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: yarn test \ No newline at end of file