ci: plugins: Install plugin deps before core deps

pull/5384/head
Richard Hansen 2022-01-27 19:02:26 -05:00
parent e80e1c0221
commit f02334e589
1 changed files with 10 additions and 3 deletions

View File

@ -30,9 +30,6 @@ jobs:
with:
repository: ether/etherpad-lite
- name: Install all dependencies and symlink for ep_etherpad-lite
run: src/bin/installDeps.sh
- name: Checkout plugin repository
uses: actions/checkout@v2
with:
@ -57,5 +54,15 @@ jobs:
env:
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
# This must be run after setting up the plugin, otherwise npm will try to
# hoist common dependencies by removing them from src/node_modules and
# installing them in the top-level node_modules. As of v6.14.10, npm's hoist
# logic appears to be buggy, because it sometimes removes dependencies from
# src/node_modules but fails to add them to the top-level node_modules. Even
# if npm correctly hoists the dependencies, the hoisting seems to confuse
# tools such as `npm outdated`, `npm update`, and some ESLint rules.
- name: Install Etherpad core dependencies
run: src/bin/installDeps.sh
- name: Run the backend tests
run: cd src && npm test