From 4dae31ea5899896f63df1dd4d5a78cb1fab9c86d Mon Sep 17 00:00:00 2001 From: princegupta1131 <114015020+princegupta1131@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:28:08 +0530 Subject: [PATCH] ED-4000 feat: Github actions instead of Jenkins-25 --- .circleci/config.yml | 57 -------------------------------------------- 1 file changed, 57 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 681cfa58b5b..e69de29bb2d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,57 +0,0 @@ -version: 2.1 -jobs: - build: - docker: - - image: cimg/node:18.16.0 - steps: - - checkout - - run: - name: run build file - command: /bin/bash -x build.sh ${CIRCLE_SHA1} test - test-cases: - working_directory: ~/portal/src/app/client - docker: - # Ref: https://circleci.com/docs/2.0/configuration-reference/#available-machine-images - - image: cimg/node:18.16.0 - resource_class: large - steps: - - checkout: - path: ~/portal - - run: - # Using NodeJS version 16 - name: Installing prerequisites - command: |- - node --version - - run: - name: ignore-engines - command: 'yarn config set ignore-engines true' - - run: - name: Installing npm deps - command: 'yarn install' - - save_cache: # special step to save the dependency cache - key: dependency-cache-portal-{{ checksum "package.json" }} - paths: - - ./node_modules - # - run: - # name: ng lint and building - # command: 'mkdir -p /tmp/logs && node --max_old_space_size=6000 ./node_modules/@angular/cli/bin/ng build --prod --optimization=false --buildOptimizer=false | tee /tmp/logs/build.log' - - run: - name: Executing test cases using JEST - command: 'npm run test:ci' - - run: - name: Install Sonar Scanner - command: | - cd /tmp - wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-5.0.1.3006-linux.zip - unzip || sudo apt install unzip -y - unzip sonar-scanner-cli-5.0.1.3006-linux.zip - cd - - - run: - name: run sonar scanner - command: 'cd ~/portal && /tmp/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner' -workflows: - version: 2 - build_and_test: - jobs: - - test-cases - \ No newline at end of file