ep_offline_edit 0.0.33 → 0.0.35
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,20 +16,20 @@ 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
|
|
23
23
|
-
|
|
24
24
|
name: Install etherpad core
|
|
25
|
-
uses: actions/checkout@
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
26
|
with:
|
|
27
27
|
repository: ether/etherpad-lite
|
|
28
28
|
path: etherpad-lite
|
|
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
|
|
@@ -44,20 +44,9 @@ jobs:
|
|
|
44
44
|
${{ runner.os }}-pnpm-store-
|
|
45
45
|
-
|
|
46
46
|
name: Checkout plugin repository
|
|
47
|
-
uses: actions/checkout@
|
|
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
|
|
@@ -12,13 +12,13 @@ jobs:
|
|
|
12
12
|
steps:
|
|
13
13
|
-
|
|
14
14
|
name: Check out Etherpad core
|
|
15
|
-
uses: actions/checkout@
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
16
|
with:
|
|
17
17
|
repository: ether/etherpad-lite
|
|
18
18
|
- uses: pnpm/action-setup@v3
|
|
19
19
|
name: Install pnpm
|
|
20
20
|
with:
|
|
21
|
-
version:
|
|
21
|
+
version: 10
|
|
22
22
|
run_install: false
|
|
23
23
|
- name: Get pnpm store directory
|
|
24
24
|
shell: bash
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
${{ runner.os }}-pnpm-store-
|
|
34
34
|
-
|
|
35
35
|
name: Check out the plugin
|
|
36
|
-
uses: actions/checkout@
|
|
36
|
+
uses: actions/checkout@v4
|
|
37
37
|
with:
|
|
38
38
|
path: ./node_modules/__tmp
|
|
39
39
|
-
|
|
@@ -15,13 +15,13 @@ jobs:
|
|
|
15
15
|
node-version: 20
|
|
16
16
|
registry-url: https://registry.npmjs.org/
|
|
17
17
|
- name: Check out Etherpad core
|
|
18
|
-
uses: actions/checkout@
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
19
|
with:
|
|
20
20
|
repository: ether/etherpad-lite
|
|
21
21
|
- uses: pnpm/action-setup@v3
|
|
22
22
|
name: Install pnpm
|
|
23
23
|
with:
|
|
24
|
-
version:
|
|
24
|
+
version: 10
|
|
25
25
|
run_install: false
|
|
26
26
|
- name: Get pnpm store directory
|
|
27
27
|
shell: bash
|
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
restore-keys: |
|
|
36
36
|
${{ runner.os }}-pnpm-store-
|
|
37
37
|
-
|
|
38
|
-
uses: actions/checkout@
|
|
38
|
+
uses: actions/checkout@v4
|
|
39
39
|
with:
|
|
40
40
|
fetch-depth: 0
|
|
41
41
|
-
|