From cf3294d3a06bbe64ce00ac19754580b48a6f2b53 Mon Sep 17 00:00:00 2001 From: Vic Date: Sat, 18 Jun 2022 01:26:52 +0200 Subject: [PATCH] updated circleCi config --- .circleci/config.yml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 547fdb2..d8fa540 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,22 +28,26 @@ jobs: - run: name: Install API Dependencies command: | - echo "TODO: Install dependencies in the the backend API " + echo "TODO: Install dependencies in the the backend API" + npm run api:install # TODO: Lint the frontend - run: name: Front-End Lint command: | echo "TODO: Lint the frontend" + npm run frontend:lint # TODO: Build the frontend app - run: name: Front-End Build command: | echo "TODO: Build the frontend app" + npm run frontend:build # TODO: Build the backend API - run: name: API Build command: | echo "TODO: Build the backend API" + npm run api:build # deploy step will run only after manual approval deploy: docker: @@ -55,11 +59,44 @@ jobs: - eb/setup - aws-cli/setup - checkout + - run: + name: Install Front-End Dependencies + command: | + echo "NODE --version" + echo $(node --version) + echo "NPM --version" + echo $(npm --version) + npm run frontend:install + # TODO: Install dependencies in the the backend API + - run: + name: Install API Dependencies + command: | + echo "TODO: Install dependencies in the the backend API" + npm run api:install + # TODO: Lint the frontend + - run: + name: Front-End Lint + command: | + echo "TODO: Lint the frontend" + npm run frontend:lint + # TODO: Build the frontend app + - run: + name: Front-End Build + command: | + echo "TODO: Build the frontend app" + npm run frontend:build + # TODO: Build the backend API + - run: + name: API Build + command: | + echo "TODO: Build the backend API" + npm run api:build - run: name: Deploy App # TODO: Install, build, deploy in both apps command: | echo "# TODO: Install, build, deploy in both apps" + npm run deploy workflows: udagram: