split job steps into api and play
This commit is contained in:
parent
56ca9f6579
commit
0c5bc4644a
1 changed files with 37 additions and 15 deletions
|
@ -14,9 +14,31 @@ 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:
|
||||
- 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-
|
||||
|
||||
- run: yarn install
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
key: v1-dependencies-{{ checksum "package.json" }}
|
||||
|
||||
# run tests!
|
||||
- run: yarn test
|
||||
- play:
|
||||
path: ~/node-go/play-node-go
|
||||
- checkout
|
||||
|
||||
# Download and cache dependencies
|
||||
|
|
Loading…
Reference in a new issue