From 326ca0fbe0d92bfe3cf4d525b72921cc7686423c Mon Sep 17 00:00:00 2001 From: WilliamRClark Date: Wed, 2 Jun 2021 09:00:21 -0400 Subject: [PATCH] Update build config. --- .circleci/config.yml | 52 ++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e3273f..549a386 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,54 +5,44 @@ orbs: # declare what orbs we are going to use version: 2.1 # using 2.1 provides access to orbs and other features jobs: - build: + build-api: executor: node/default working_directory: ~/project steps: - attach_workspace: at: . - checkout - - run: npm install - - run: npm run build - - run: mkdir artifacts - - run: tar -zcvf artifacts/build.tar.gz --exclude artifacts . - - run: ls -al - - store_artifacts: - path: ./artifacts/build.tar.gz - destination: build_output.tar.gz - - run: # Run security audit. - halt_build_on_fail: false - command: - npm audit > ./artifacts/security_report.txt || true - - store_artifacts: - path: ./artifacts/security_report.txt - destination: security_report.txt + - run: cd ./api && npm install + - run: cd ./api && npm run build - test: + build-app: executor: node/default + working_directory: ~/project steps: - browser-tools/install-chrome + - attach_workspace: + at: . - checkout - - run: npm install - - run: npm run build - - run: npm run test-headless + - run: cd ./component && npm install + - run: cd ./component && npm run build - e2eTest: + build-test: executor: node/default + working_directory: ~/project steps: - browser-tools/install-chrome + - attach_workspace: + at: . - checkout - - run: npm install - - run: npm run build - - run: npm run e2e - - store_artifacts: - path: ./tmp - + - run: cd ./component && npm install + - run: cd ./component && npm run build + - run: cd ./component && npm run test-headless + - run: cd ./component && npm run e2e workflows: version: 2 - build_and_test: + build: jobs: - - build - - test - - e2eTest + - build-api + - build-app + - build-test