From e2676198aea397484a53dede4a3038b249a1fe49 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:02:58 -0400 Subject: [PATCH 1/9] Update config.yml --- .circleci/config.yml | 123 ++++++++++--------------------------------- 1 file changed, 28 insertions(+), 95 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48a0973..6d15aed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,114 +1,47 @@ -version: 2.1 -# Define executors -executors: - node-executor: - docker: - - image: cimg/node:18.17 - working_directory: ~/project -# Define jobs jobs: - # Job that always runs - test: - executor: node-executor - steps: - - checkout - - run: - name: Run tests - command: echo "run test" - - run: - name: Run linting - command: echo "run linting" + test-coordinator: + type: no-op - # Job that always runs - build: - executor: node-executor + test-unit: + docker: + - image: cimg/node:20.10 steps: - checkout + - run: npm run test:unit - - run: - name: Run tests - command: echo "run test" - - run: - name: Run linting - command: echo "run linting" - - # Conditional job - only runs on main branch - deploy: - executor: node-executor + test-integration: + docker: + - image: cimg/node:20.10 steps: + - checkout + - run: npm run test:integration - - run: - name: Deploy to production - command: | - echo "Deploying to production..." - # Add your deployment commands here - # e.g., aws s3 sync dist/ s3://my-bucket/ - # e.g., kubectl apply -f k8s/ - echo "Deployment completed!" - - # Another conditional job - only runs on feature branches - integration-test: - executor: node-executor + test-e2e: + docker: + - image: cimg/node:20.10 steps: - - run: - name: Run integration tests - command: | - echo "Running integration tests..." - # Add integration test commands here - - -# Define workflows + - checkout + - run: npm run test:e2e workflows: - version: 2 build-test-deploy: jobs: - # These jobs run on every commit - - test - - build: + - build + - test-unit: requires: - - test - - # Conditional job: Deploy only runs on main branch - - deploy: + - build + - test-integration: requires: - build - filters: - branches: - only: main - - # Conditional job: Integration tests only run on feature branches - - integration-test: + - test-e2e: requires: - build - filters: - branches: - ignore: - - main - - develop - - # Alternative workflow that runs only on tags - release: - jobs: - - test: - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ - - build: + - test-coordinator: requires: - - test - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ + - test-unit + - test-integration + - test-e2e - deploy: requires: - - build - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ - + - test-coordinator + + From c75028e9f02e13f773d1d85100751dcff3ecf799 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:05:05 -0400 Subject: [PATCH 2/9] Update config.yml --- .circleci/config.yml | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d15aed..5f13bbc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,39 +9,10 @@ jobs: - checkout - run: npm run test:unit - test-integration: - docker: - - image: cimg/node:20.10 - steps: - - checkout - - run: npm run test:integration - test-e2e: - docker: - - image: cimg/node:20.10 - steps: - - checkout - - run: npm run test:e2e workflows: build-test-deploy: jobs: - - build - - test-unit: - requires: - - build - - test-integration: - requires: - - build - - test-e2e: - requires: - - build - - test-coordinator: - requires: - - test-unit - - test-integration - - test-e2e - - deploy: - requires: - - test-coordinator - + - test-coordinator + - test-unit From 21804143fcde25af8336af6ce72245d7e08eee50 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:06:32 -0400 Subject: [PATCH 3/9] Update config.yml --- .circleci/config.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f13bbc..4738947 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,12 @@ +version: 2.1 + jobs: test-coordinator: - type: no-op - + docker: + - image: cimg/base:stable + steps: + - run: echo "Coordinator job - no operation needed" + test-unit: docker: - image: cimg/node:20.10 @@ -9,10 +14,8 @@ jobs: - checkout - run: npm run test:unit - workflows: build-test-deploy: jobs: - test-coordinator - test-unit - From 1dc95f83d8d47ba864bfb92c6c16b415a26877a8 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:07:39 -0400 Subject: [PATCH 4/9] Update config.yml --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4738947..b04e2c1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,6 +2,7 @@ version: 2.1 jobs: test-coordinator: + type: no-op docker: - image: cimg/base:stable steps: From 74ecf121577863e77c6b132f3bbbb290cd110118 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:10:50 -0400 Subject: [PATCH 5/9] Update config.yml --- .circleci/config.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b04e2c1..d1d33f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,12 +2,7 @@ version: 2.1 jobs: test-coordinator: - type: no-op - docker: - - image: cimg/base:stable - steps: - - run: echo "Coordinator job - no operation needed" - + type: no-op test-unit: docker: - image: cimg/node:20.10 From ea3868c58514521d870b10936196750f2544dc5f Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:13:55 -0400 Subject: [PATCH 6/9] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d1d33f2..49c7e66 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: - image: cimg/node:20.10 steps: - checkout - - run: npm run test:unit + workflows: build-test-deploy: From f9418c15d74f3475494054ed4d830a9bc50192e7 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:25:25 -0400 Subject: [PATCH 7/9] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 49c7e66..75d4337 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: test-coordinator: - type: no-op + test-unit: docker: - image: cimg/node:20.10 From 6e569724e742ce7002c0cea43d98203a29598974 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:26:29 -0400 Subject: [PATCH 8/9] Update config.yml --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 75d4337..010f431 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,6 +2,11 @@ version: 2.1 jobs: test-coordinator: + type: no-op + docker: + - image: cimg/node:20.10 + steps: + - checkout test-unit: docker: From a03e3f1d58f15e5175b52b0a61cd36ffcf4956a7 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:28:50 -0400 Subject: [PATCH 9/9] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 010f431..2aeead7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: test-coordinator: - type: no-op + docker: - image: cimg/node:20.10 steps: