ep_user_displayname 1.0.7 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
steps:
|
|
17
17
|
-
|
|
18
18
|
name: Install libreoffice
|
|
19
|
-
uses: awalsh128/cache-apt-pkgs-action@v1.
|
|
19
|
+
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
|
|
20
20
|
with:
|
|
21
21
|
packages: libreoffice libreoffice-pdfimport
|
|
22
22
|
version: 1.0
|
|
@@ -29,7 +29,7 @@ jobs:
|
|
|
29
29
|
- uses: pnpm/action-setup@v3
|
|
30
30
|
name: Install pnpm
|
|
31
31
|
with:
|
|
32
|
-
version:
|
|
32
|
+
version: 10
|
|
33
33
|
run_install: false
|
|
34
34
|
- name: Get pnpm store directory
|
|
35
35
|
shell: bash
|
|
@@ -47,17 +47,6 @@ jobs:
|
|
|
47
47
|
uses: actions/checkout@v4
|
|
48
48
|
with:
|
|
49
49
|
path: plugin
|
|
50
|
-
-
|
|
51
|
-
name: Determine plugin name
|
|
52
|
-
id: plugin_name
|
|
53
|
-
working-directory: ./plugin
|
|
54
|
-
run: |
|
|
55
|
-
npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
|
|
56
|
-
-
|
|
57
|
-
name: Link plugin directory
|
|
58
|
-
working-directory: ./plugin
|
|
59
|
-
run: |
|
|
60
|
-
pnpm link --global
|
|
61
50
|
- name: Remove tests
|
|
62
51
|
working-directory: ./etherpad-lite
|
|
63
52
|
run: rm -rf ./src/tests/backend/specs
|
|
@@ -65,28 +54,17 @@ jobs:
|
|
|
65
54
|
name: Install Etherpad core dependencies
|
|
66
55
|
working-directory: ./etherpad-lite
|
|
67
56
|
run: bin/installDeps.sh
|
|
68
|
-
- name:
|
|
57
|
+
- name: Install plugin
|
|
69
58
|
working-directory: ./etherpad-lite
|
|
70
59
|
run: |
|
|
71
|
-
pnpm
|
|
72
|
-
pnpm run install-plugins --path ../../plugin
|
|
73
|
-
env:
|
|
74
|
-
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
|
|
75
|
-
- name: Link ep_etherpad-lite
|
|
76
|
-
working-directory: ./etherpad-lite/src
|
|
77
|
-
run: |
|
|
78
|
-
pnpm link --global
|
|
79
|
-
- name: Link etherpad to plugin
|
|
80
|
-
working-directory: ./plugin
|
|
81
|
-
run: |
|
|
82
|
-
pnpm link --global ep_etherpad-lite
|
|
60
|
+
pnpm run plugins i --path ../../plugin
|
|
83
61
|
-
|
|
84
62
|
name: Run the backend tests
|
|
85
|
-
working-directory: ./etherpad-lite
|
|
63
|
+
working-directory: ./etherpad-lite/src
|
|
86
64
|
run: |
|
|
87
|
-
res=$(find
|
|
65
|
+
res=$(find ./plugin_packages -path "*/static/tests/backend/specs/*" 2>/dev/null | wc -l)
|
|
88
66
|
if [ $res -eq 0 ]; then
|
|
89
67
|
echo "No backend tests found"
|
|
90
68
|
else
|
|
91
|
-
|
|
69
|
+
npx cross-env NODE_ENV=production mocha --import=tsx --timeout 120000 --recursive node_modules/ep_*/static/tests/backend/specs/**
|
|
92
70
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep_user_displayname",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Etherpad plugin to set each user's display name via config or authentication plugin.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"node": ">=18.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"eslint": "^8.57.
|
|
25
|
+
"eslint": "^8.57.1",
|
|
26
26
|
"eslint-config-etherpad": "^4.0.4",
|
|
27
|
-
"typescript": "^5.
|
|
27
|
+
"typescript": "^5.9.3"
|
|
28
28
|
},
|
|
29
29
|
"funding": {
|
|
30
30
|
"type": "individual",
|