From 2ddfa115c0edabf6b0cec172f18b3fdba647dbf8 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Tue, 24 Jun 2025 15:44:04 +0530 Subject: [PATCH 1/2] refactor: streamline dependency installation by removing artifact restoration step --- .github/workflows/test.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b565ef3..03dd5da7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,11 +59,8 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: npm - - name: Restore build artifacts - uses: actions/cache/restore@v4 - with: - path: . - key: ${{ env.CACHE_KEY }} + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Run tests run: npm run test From 9905096de2e96bd9da59787b6c5a211c089c3d9b Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Tue, 24 Jun 2025 16:20:36 +0530 Subject: [PATCH 2/2] refactor: remove artifact saving step and switch to npm ci for dependency installation --- .github/workflows/test.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03dd5da7..ab3f30f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,12 +37,6 @@ jobs: with: node: ${{ env.NODE_VERSION }} - - name: Save build artifacts - uses: actions/cache/save@v4 - with: - path: . - key: ${{ env.CACHE_KEY }} - unit: needs: build # Require build to complete before running tests @@ -60,7 +54,7 @@ jobs: cache: npm - name: Install dependencies - run: pnpm install --frozen-lockfile + run: npm ci --include=dev - name: Run tests run: npm run test