From a81402fa826b56225ace6f0c6b4a19053c5fa762 Mon Sep 17 00:00:00 2001 From: Aamod007 Date: Mon, 22 Jun 2026 19:31:43 +0530 Subject: [PATCH] fix(ci): work around npm optional deps bug by using npm install for FRONTEND npm ci fails on Linux CI runners because of npm bug #4828 where cross-platform optional dependencies (like @rollup/rollup-linux-x64-gnu) are not installed correctly from a lockfile generated on Windows. Switching to npm install for FRONTEND dependencies in both CI jobs avoids this issue while the lockfile can be regenerated natively. Also adds npm caching to the e2e-tests job for faster installs. --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27930f0..d42ed45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: run: npm ci - name: Install frontend dependencies - run: npm ci + run: npm install working-directory: FRONTEND - name: Install backend dependencies @@ -79,11 +79,16 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' + cache: 'npm' + cache-dependency-path: | + package-lock.json + FRONTEND/package-lock.json + BACKEND/package-lock.json - name: Install dependencies run: | npm ci - cd FRONTEND && npm ci + cd FRONTEND && npm install cd ../BACKEND && npm ci - name: Install Playwright Browsers