Only install direct dependencies.

This commit is contained in:
SamTV12345 2024-02-10 15:19:03 +01:00
parent 9a5d1ce11f
commit 1538cd344d
3 changed files with 18 additions and 2 deletions

View file

@ -55,7 +55,7 @@ jobs:
# We intentionally install an old ep_align version to test upgrades to
# the minor version number. The --legacy-peer-deps flag is required to
# work around a bug in npm v7: https://github.com/npm/cli/issues/2199
run: pnpm install --legacy-peer-deps ep_align@0.2.27
run: pnpm install ep_align@0.2.27
# Etherpad core dependencies must be installed after installing the
# plugin's dependencies, otherwise npm will try to hoist common
# dependencies by removing them from src/node_modules and installing them

View file

@ -95,6 +95,22 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
-
name: Install Etherpad plugins
# The --legacy-peer-deps flag is required to work around a bug in npm v7:

View file

@ -106,7 +106,7 @@ jobs:
-
name: Install Cypress
working-directory: ./src
run: npm install cypress --legacy-peer-deps
run: pnpm install cypress
-
name: Run Etherpad & Test Frontend
working-directory: ./src