From c2356ff5a9f30ca2ca1dd62a5bf713c6f9a7be36 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:23:51 -0500 Subject: [PATCH 01/14] fix: remove branch reference from reusable workflow path --- .github/workflows/workflow-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 144a2b4..4bde051 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Call CI Workflow - uses: ./.github/workflows/utilities/reusable-workflow.yml@main + uses: ./.github/workflows/utilities/reusable-workflow.yml call-composite-workflow: runs-on: ubuntu-latest steps: From 548b8857bc741dc55e6ad02e9c7caf1aab29eb97 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:26:41 -0500 Subject: [PATCH 02/14] fix: update checkout step and correct path for composite workflow --- .github/workflows/workflow-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 4bde051..2234d29 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -7,13 +7,16 @@ jobs: call-reusable-workflow: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Call CI Workflow uses: ./.github/workflows/utilities/reusable-workflow.yml call-composite-workflow: runs-on: ubuntu-latest steps: - name: Call Greeting Workflow - uses: ./.github/workflows/utilities/composite-workflow.yml + uses: ./utilities/composite-workflow.yml with: name: "Desarrollador" message: "Hola" From 8b2e26fe839404831c088c356075a48e71db24f6 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:29:55 -0500 Subject: [PATCH 03/14] fix: add missing checkout step for composite workflow and correct path --- .github/workflows/workflow-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 2234d29..6625951 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -15,8 +15,11 @@ jobs: call-composite-workflow: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Call Greeting Workflow - uses: ./utilities/composite-workflow.yml + uses: ./.github/workflows/utilities/composite-workflow with: name: "Desarrollador" message: "Hola" From 527a46fa696bca3033d485c96ddcbc0654ec7fb6 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:33:30 -0500 Subject: [PATCH 04/14] feat: add greeting workflow and update CI to use action file --- .../{composite-workflow.yml => composite-workflow/action.yml} | 0 .github/workflows/workflow-ci.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/utilities/{composite-workflow.yml => composite-workflow/action.yml} (100%) diff --git a/.github/workflows/utilities/composite-workflow.yml b/.github/workflows/utilities/composite-workflow/action.yml similarity index 100% rename from .github/workflows/utilities/composite-workflow.yml rename to .github/workflows/utilities/composite-workflow/action.yml diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 6625951..360bb72 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: Call Greeting Workflow - uses: ./.github/workflows/utilities/composite-workflow + uses: ./.github/workflows/utilities/composite-workflow/action.yml with: name: "Desarrollador" message: "Hola" From 93c2e021fdfae5cd6d90c921a0a07b8356264ffa Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:34:57 -0500 Subject: [PATCH 05/14] fix: update path for composite workflow in CI configuration --- .github/workflows/workflow-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 360bb72..6625951 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: Call Greeting Workflow - uses: ./.github/workflows/utilities/composite-workflow/action.yml + uses: ./.github/workflows/utilities/composite-workflow with: name: "Desarrollador" message: "Hola" From 526d0215c337afbace55acd1e1c5984fad51e37a Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:37:08 -0500 Subject: [PATCH 06/14] feat: add reusable CI workflow and update workflow-ci to use it --- .../{reusable-workflow.yml => reusable-workflow/action.yml} | 0 .github/workflows/workflow-ci.yml | 5 +---- 2 files changed, 1 insertion(+), 4 deletions(-) rename .github/workflows/utilities/{reusable-workflow.yml => reusable-workflow/action.yml} (100%) diff --git a/.github/workflows/utilities/reusable-workflow.yml b/.github/workflows/utilities/reusable-workflow/action.yml similarity index 100% rename from .github/workflows/utilities/reusable-workflow.yml rename to .github/workflows/utilities/reusable-workflow/action.yml diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 6625951..38b4dab 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -11,13 +11,10 @@ jobs: uses: actions/checkout@v4 - name: Call CI Workflow - uses: ./.github/workflows/utilities/reusable-workflow.yml + uses: ./.github/workflows/utilities/reusable-workflow call-composite-workflow: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Call Greeting Workflow uses: ./.github/workflows/utilities/composite-workflow with: From a89f0b7fa7dc6c90e0529705547b06eaf43d1d62 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:40:27 -0500 Subject: [PATCH 07/14] fix: remove redundant job name and ensure checkout step is present in CI workflow --- .github/workflows/utilities/reusable-workflow/action.yml | 1 - .github/workflows/workflow-ci.yml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/utilities/reusable-workflow/action.yml b/.github/workflows/utilities/reusable-workflow/action.yml index e9349a7..bb11746 100644 --- a/.github/workflows/utilities/reusable-workflow/action.yml +++ b/.github/workflows/utilities/reusable-workflow/action.yml @@ -3,7 +3,6 @@ description: A reusable workflow for continuous integration tasks. on: workflow_call jobs: CI: - name: Setup Node.js Environment runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 38b4dab..17793eb 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -12,9 +12,13 @@ jobs: - name: Call CI Workflow uses: ./.github/workflows/utilities/reusable-workflow + call-composite-workflow: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Call Greeting Workflow uses: ./.github/workflows/utilities/composite-workflow with: From 38927ed1e99d344c26d617ef1a1337f292691474 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 18 Sep 2025 23:43:13 -0500 Subject: [PATCH 08/14] fix: specify action file for reusable workflow in CI configuration --- .github/workflows/workflow-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 17793eb..a81d54e 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4 - name: Call CI Workflow - uses: ./.github/workflows/utilities/reusable-workflow + uses: ./.github/workflows/utilities/reusable-workflow/action.yml call-composite-workflow: runs-on: ubuntu-latest From 716df526028d629f752d21ca37dcbe175239bca4 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Fri, 19 Sep 2025 23:05:18 -0500 Subject: [PATCH 09/14] fix: trigger --- .github/workflows/utilities/reusable-workflow/action.yml | 3 ++- .github/workflows/workflow-ci.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/utilities/reusable-workflow/action.yml b/.github/workflows/utilities/reusable-workflow/action.yml index bb11746..e38afcf 100644 --- a/.github/workflows/utilities/reusable-workflow/action.yml +++ b/.github/workflows/utilities/reusable-workflow/action.yml @@ -1,6 +1,7 @@ name: CI Workflow description: A reusable workflow for continuous integration tasks. -on: workflow_call +on: + workflow_call: jobs: CI: runs-on: ubuntu-latest diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index a81d54e..17793eb 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4 - name: Call CI Workflow - uses: ./.github/workflows/utilities/reusable-workflow/action.yml + uses: ./.github/workflows/utilities/reusable-workflow call-composite-workflow: runs-on: ubuntu-latest From 6cdf2cd09f90eb51c9a36b419bb99832c77681ba Mon Sep 17 00:00:00 2001 From: chrisdca Date: Fri, 19 Sep 2025 23:30:45 -0500 Subject: [PATCH 10/14] fix: move reusable workflow path --- .../action.yml => reusable-workflow-CI.yml} | 3 +-- .github/workflows/workflow-ci.yml | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) rename .github/workflows/{utilities/reusable-workflow/action.yml => reusable-workflow-CI.yml} (96%) diff --git a/.github/workflows/utilities/reusable-workflow/action.yml b/.github/workflows/reusable-workflow-CI.yml similarity index 96% rename from .github/workflows/utilities/reusable-workflow/action.yml rename to .github/workflows/reusable-workflow-CI.yml index e38afcf..bb11746 100644 --- a/.github/workflows/utilities/reusable-workflow/action.yml +++ b/.github/workflows/reusable-workflow-CI.yml @@ -1,7 +1,6 @@ name: CI Workflow description: A reusable workflow for continuous integration tasks. -on: - workflow_call: +on: workflow_call jobs: CI: runs-on: ubuntu-latest diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 17793eb..9f27e88 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -7,11 +7,8 @@ jobs: call-reusable-workflow: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Call CI Workflow - uses: ./.github/workflows/utilities/reusable-workflow + uses: ./.github/workflows/reusable-workflow-CI.yml call-composite-workflow: runs-on: ubuntu-latest From 663ab250b2a299b9d41d9ca8d9d149b73c41cfbf Mon Sep 17 00:00:00 2001 From: chrisdca Date: Fri, 19 Sep 2025 23:31:47 -0500 Subject: [PATCH 11/14] fix: add checkout action --- .github/workflows/workflow-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 9f27e88..6ad2eea 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -7,6 +7,9 @@ jobs: call-reusable-workflow: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Call CI Workflow uses: ./.github/workflows/reusable-workflow-CI.yml From d983998aad054362aa3258056fb0eb0e558bf6e8 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Fri, 19 Sep 2025 23:38:12 -0500 Subject: [PATCH 12/14] fix: use reusable workflow as step --- .github/workflows/workflow-ci.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 6ad2eea..076e485 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -5,13 +5,7 @@ permissions: on: [push] jobs: call-reusable-workflow: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Call CI Workflow - uses: ./.github/workflows/reusable-workflow-CI.yml + uses: ./.github/workflows/reusable-workflow-ci.yml call-composite-workflow: runs-on: ubuntu-latest From cd09cf35ef613d8a388118a399d25214c90747d5 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Fri, 19 Sep 2025 23:43:15 -0500 Subject: [PATCH 13/14] fix: update workflow file name --- .../{reusable-workflow-CI.yml => reusable-workflow-for-ci.yml} | 2 +- .github/workflows/workflow-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{reusable-workflow-CI.yml => reusable-workflow-for-ci.yml} (99%) diff --git a/.github/workflows/reusable-workflow-CI.yml b/.github/workflows/reusable-workflow-for-ci.yml similarity index 99% rename from .github/workflows/reusable-workflow-CI.yml rename to .github/workflows/reusable-workflow-for-ci.yml index bb11746..8f0a380 100644 --- a/.github/workflows/reusable-workflow-CI.yml +++ b/.github/workflows/reusable-workflow-for-ci.yml @@ -1,5 +1,5 @@ name: CI Workflow -description: A reusable workflow for continuous integration tasks. +description: A reusable workflow for continuous integration tasks on: workflow_call jobs: CI: diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 076e485..cc0dc0d 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -5,7 +5,7 @@ permissions: on: [push] jobs: call-reusable-workflow: - uses: ./.github/workflows/reusable-workflow-ci.yml + uses: ./.github/workflows/reusable-workflow-for-ci.yml call-composite-workflow: runs-on: ubuntu-latest From 7dfd67212d6edabee3141c2bcedd906f49201fef Mon Sep 17 00:00:00 2001 From: chrisdca Date: Fri, 19 Sep 2025 23:47:08 -0500 Subject: [PATCH 14/14] fix: remove pnpm --- .github/workflows/reusable-workflow-for-ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/reusable-workflow-for-ci.yml b/.github/workflows/reusable-workflow-for-ci.yml index 8f0a380..a27297c 100644 --- a/.github/workflows/reusable-workflow-for-ci.yml +++ b/.github/workflows/reusable-workflow-for-ci.yml @@ -12,16 +12,12 @@ jobs: uses: actions/setup-node@v4 with: node-version: "22.x" - cache: "pnpm" - - - name: Install pnpm - run: npm install -g pnpm - name: Install dependencies - run: pnpm install + run: npm install - name: Run tests - run: pnpm test + run: npm test - name: Build project - run: pnpm run build + run: npm run build