diff --git a/.github/workflows/verification-pipeline.yml b/.github/workflows/verification-pipeline.yml index 3b8b9b8bd9..b028fbac4c 100644 --- a/.github/workflows/verification-pipeline.yml +++ b/.github/workflows/verification-pipeline.yml @@ -194,7 +194,14 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm ci --legacy-peer-deps + run: | + if [ "${{ runner.os }}" == "Linux" ]; then + npm ci --legacy-peer-deps + else + # Skip optional platform-specific dependencies on macOS/Windows + npm ci --legacy-peer-deps --omit=optional || npm ci --legacy-peer-deps --force + fi + shell: bash - name: Run unit tests run: |