From 5e1b4653831b70fdeef36c1552d78b61733ec952 Mon Sep 17 00:00:00 2001 From: douglas <douglascvas@gmail.com> Date: Tue, 4 Sep 2018 21:04:23 +1000 Subject: [PATCH] #30 - Created test step for backend in circle ci. --- .circleci/config.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 27fe541f..c60ceca8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,7 +49,7 @@ jobs: - run: name: Deploy to S3 command: aws s3 sync /tmp/build/ s3://carpal-ui-rides-dev/ --delete - services-deploy: + services-build: docker: - image: circleci/node:7.10 working_directory: ~/carpal/backend/src @@ -67,6 +67,18 @@ jobs: paths: - node_modules key: v1-dependencies-{{ checksum "package.json" }} + services-deploy: + docker: + - image: circleci/node:7.10 + working_directory: ~/carpal/backend/src + steps: + - checkout: + path: ~/carpal + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- - run: ./writeSecrets.sh - run: npm run deploy-sls workflows: @@ -80,6 +92,7 @@ workflows: filters: branches: only: master + - services-build - services-deploy: filters: branches: