diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index eedd0732..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,97 +0,0 @@ -version: 2.1 -orbs: - browser-tools: circleci/browser-tools@1.4.6 -executors: - build-executor: - docker: - - image: cimg/node:lts-browsers -commands: - build-node: - parameters: - working_directory: - type: string - config_path: - type: string - test_cmd: - type: string - default: npm test - description: "Builds and tests a node project" - steps: - - browser-tools/install-browser-tools - - run: | - node --version - google-chrome --version - - restore_cache: - key: dependencies-{{ .Branch }}-{{ checksum "<< parameters.working_directory >>/package-lock.json" }} - - run: - name: Install dependencies - command: npm ci - working_directory: << parameters.working_directory >> - - save_cache: - key: dependencies-{{ .Branch }}-{{ checksum "<< parameters.working_directory >>/package-lock.json" }} - paths: - - ~/.npm - - ~/.cache - - run: - name: Copy config - command: | - cp << parameters.working_directory >>/<< parameters.config_path >>/auth.config.ts.example << parameters.working_directory >>/<< parameters.config_path >>/auth.config.ts - - run: - name: Build - command: npm run build - working_directory: << parameters.working_directory >> - - run: - name: Run tests - command: << parameters.test_cmd >> - working_directory: << parameters.working_directory >> -jobs: - checkout: - executor: - name: build-executor - steps: - - checkout - - persist_to_workspace: - root: . - paths: - - . - build-angular: - executor: - name: build-executor - steps: - - attach_workspace: - at: . - - build-node: - working_directory: angular - config_path: src/app - test_cmd: npm run test:ci - build-react: - executor: - name: build-executor - steps: - - attach_workspace: - at: . - - build-node: - working_directory: react - config_path: src - build-vue: - executor: - name: build-executor - steps: - - attach_workspace: - at: . - - build-node: - working_directory: vue - config_path: src -workflows: - build-samples: - jobs: - - checkout - - build-angular: - requires: - - checkout - - build-react: - requires: - - checkout - - build-vue: - requires: - - checkout