-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b58d31d
commit de80634
Showing
4 changed files
with
1,971 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,20 +44,27 @@ jobs: | |
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }} | ||
- | ||
uses: actions/setup-node@v4 | ||
- uses: pnpm/action-setup@v3 | ||
name: Install pnpm | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
cache-dependency-path: | | ||
src/package-lock.json | ||
src/bin/doc/package-lock.json | ||
node_modules/${{ steps.plugin_name.outputs.plugin_name }}/package-lock.json | ||
- run: npm install [email protected] -g | ||
name: Install legacy npm for correct dependency resolution | ||
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@v4 | ||
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 plugin dependencies | ||
run: | | ||
cd ./node_modules/"${PLUGIN_NAME}" | ||
npm ci | ||
pnpm i | ||
env: | ||
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }} | ||
# Etherpad core dependencies must be installed after installing the | ||
|
@@ -71,7 +78,7 @@ jobs: | |
# rules. | ||
- | ||
name: Install Etherpad core dependencies | ||
run: src/bin/installDeps.sh | ||
run: ./bin/installDeps.sh | ||
- | ||
name: Run the backend tests | ||
run: cd src && npm test | ||
run: cd src && pnpm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,14 +23,22 @@ jobs: | |
repository: ether/etherpad-lite | ||
- | ||
uses: actions/setup-node@v4 | ||
- uses: pnpm/action-setup@v3 | ||
name: Install pnpm | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
cache-dependency-path: | | ||
src/package-lock.json | ||
src/bin/doc/package-lock.json | ||
- run: npm install [email protected] -g | ||
name: Install legacy npm for correct dependency resolution | ||
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@v4 | ||
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: Check out the plugin | ||
uses: actions/checkout@v4 | ||
|
@@ -60,7 +68,7 @@ jobs: | |
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }} | ||
run: | | ||
cd ./node_modules/"${PLUGIN_NAME}" | ||
npm ci | ||
pnpm i | ||
# 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 | ||
|
@@ -72,7 +80,7 @@ jobs: | |
# rules. | ||
- | ||
name: Install Etherpad core dependencies | ||
run: src/bin/installDeps.sh | ||
run: ./bin/installDeps.sh | ||
- | ||
name: Create settings.json | ||
run: cp settings.json.template settings.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.