From e0eab5f421f2ac0a731f0347c19913f7078abe97 Mon Sep 17 00:00:00 2001 From: Manas Manohar <21006907+manasmanohar@users.noreply.github.com> Date: Thu, 18 Dec 2025 18:43:14 +0530 Subject: [PATCH 1/3] Update GitHub Actions workflow for testing --- .github/workflows/test.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d744273..011bd95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,22 +4,23 @@ on: pull_request: jobs: - release: + test: name: Unit tests runs-on: ubuntu-latest + steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: 'lts/*' - - uses: pnpm/action-setup@v2.2.2 + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 with: - version: latest + node-version: 20 + cache: pnpm + + - name: Enable pnpm + run: corepack enable + - name: Install dependencies - run: pnpm i + run: pnpm install + - name: Run unit tests - run: pnpm run test + run: pnpm test From 8d245fa43d6c232a8c798a48841d6c91b69e6c37 Mon Sep 17 00:00:00 2001 From: Manas Manohar <21006907+manasmanohar@users.noreply.github.com> Date: Thu, 18 Dec 2025 18:45:23 +0530 Subject: [PATCH 2/3] Refactor GitHub Actions workflow for unit tests Updated workflow steps for clarity and added frozen-lockfile option. --- .github/workflows/test.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 011bd95..f428c72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,5 @@ name: Test + on: push: pull_request: @@ -9,18 +10,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - - name: Enable pnpm + - name: Enable pnpm via Corepack run: corepack enable - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Run unit tests run: pnpm test From 687d43ed9d5286b35c7e1cd0a83076ad203e4edc Mon Sep 17 00:00:00 2001 From: Manas Manohar <21006907+manasmanohar@users.noreply.github.com> Date: Thu, 18 Dec 2025 18:47:10 +0530 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f428c72..a12fa5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,15 +13,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Enable pnpm via Corepack + run: corepack enable + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - - name: Enable pnpm via Corepack - run: corepack enable - - name: Install dependencies run: pnpm install --frozen-lockfile