split job steps into api and play

This commit is contained in:
Sorrel Bri 2020-02-05 13:45:10 -08:00
parent 56ca9f6579
commit 0c5bc4644a

View file

@ -14,24 +14,46 @@ jobs:
# documented at https://circleci.com/docs/2.0/circleci-images/ # documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4 # - image: circleci/mongo:3.4.4
working_directory: ~/repo working_directory: ~/node-go
steps: steps:
- checkout - api:
path: ~/node-go/server
- checkout
# Download and cache dependencies # Download and cache dependencies
- restore_cache: - restore_cache:
keys: keys:
- v1-dependencies-{{ checksum "package.json" }} - v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found # fallback to using the latest cache if no exact match is found
- v1-dependencies- - v1-dependencies-
- run: yarn install - run: yarn install
- save_cache: - save_cache:
paths: paths:
- node_modules - node_modules
key: v1-dependencies-{{ checksum "package.json" }} key: v1-dependencies-{{ checksum "package.json" }}
# run tests! # run tests!
- run: yarn test - 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