mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-07 07:37:11 -04:00
Only install direct dependencies.
This commit is contained in:
parent
9a5d1ce11f
commit
1538cd344d
3 changed files with 18 additions and 2 deletions
2
.github/workflows/frontend-admin-tests.yml
vendored
2
.github/workflows/frontend-admin-tests.yml
vendored
|
@ -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
|
||||
|
|
16
.github/workflows/frontend-tests.yml
vendored
16
.github/workflows/frontend-tests.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue