ep_subscript_and_superscript 0.3.2 → 0.3.4
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
name: Backend Tests
|
|
2
2
|
|
|
3
3
|
# any branch is useful for testing before a PR is submitted
|
|
4
|
-
on:
|
|
4
|
+
on:
|
|
5
|
+
workflow_call:
|
|
5
6
|
|
|
6
7
|
jobs:
|
|
7
8
|
withplugins:
|
|
@@ -13,73 +14,79 @@ jobs:
|
|
|
13
14
|
name: with Plugins
|
|
14
15
|
runs-on: ubuntu-latest
|
|
15
16
|
steps:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
17
|
+
-
|
|
18
|
+
name: Install libreoffice
|
|
19
|
+
uses: awalsh128/cache-apt-pkgs-action@v1.4.2
|
|
20
|
+
with:
|
|
21
|
+
packages: libreoffice libreoffice-pdfimport
|
|
22
|
+
version: 1.0
|
|
23
|
+
-
|
|
24
|
+
name: Install etherpad core
|
|
25
|
+
uses: actions/checkout@v3
|
|
26
|
+
with:
|
|
27
|
+
repository: ether/etherpad-lite
|
|
28
|
+
path: etherpad-lite
|
|
29
|
+
- uses: pnpm/action-setup@v3
|
|
30
|
+
name: Install pnpm
|
|
31
|
+
with:
|
|
32
|
+
version: 8
|
|
33
|
+
run_install: false
|
|
34
|
+
- name: Get pnpm store directory
|
|
35
|
+
shell: bash
|
|
36
|
+
run: |
|
|
37
|
+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
38
|
+
- uses: actions/cache@v4
|
|
39
|
+
name: Setup pnpm cache
|
|
40
|
+
with:
|
|
41
|
+
path: ${{ env.STORE_PATH }}
|
|
42
|
+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
43
|
+
restore-keys: |
|
|
44
|
+
${{ runner.os }}-pnpm-store-
|
|
45
|
+
-
|
|
46
|
+
name: Checkout plugin repository
|
|
47
|
+
uses: actions/checkout@v3
|
|
48
|
+
with:
|
|
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
|
+
- name: Remove tests
|
|
62
|
+
working-directory: ./etherpad-lite
|
|
63
|
+
run: rm -rf ./src/tests/backend/specs
|
|
64
|
+
-
|
|
65
|
+
name: Install Etherpad core dependencies
|
|
66
|
+
working-directory: ./etherpad-lite
|
|
67
|
+
run: bin/installDeps.sh
|
|
68
|
+
- name: Link plugin to etherpad-lite
|
|
69
|
+
working-directory: ./etherpad-lite
|
|
70
|
+
run: |
|
|
71
|
+
pnpm link --global $PLUGIN_NAME
|
|
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
|
|
83
|
+
-
|
|
84
|
+
name: Run the backend tests
|
|
85
|
+
working-directory: ./etherpad-lite
|
|
86
|
+
run: |
|
|
87
|
+
res=$(find .. -path "./node_modules/ep_*/static/tests/backend/specs/**" | wc -l)
|
|
88
|
+
if [ $res -eq 0 ]; then
|
|
89
|
+
echo "No backend tests found"
|
|
90
|
+
else
|
|
91
|
+
pnpm run test
|
|
92
|
+
fi
|
|
@@ -4,17 +4,10 @@
|
|
|
4
4
|
name: Node.js Package
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
|
-
|
|
8
|
-
workflows: ["Backend Tests", "Frontend Tests"]
|
|
9
|
-
types:
|
|
10
|
-
- completed
|
|
11
|
-
branches:
|
|
12
|
-
- main
|
|
13
|
-
- master
|
|
7
|
+
workflow_call:
|
|
14
8
|
|
|
15
9
|
jobs:
|
|
16
10
|
publish-npm:
|
|
17
|
-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
18
11
|
runs-on: ubuntu-latest
|
|
19
12
|
steps:
|
|
20
13
|
- uses: actions/setup-node@v4
|
|
@@ -74,8 +67,8 @@ jobs:
|
|
|
74
67
|
run: pnpm publish
|
|
75
68
|
env:
|
|
76
69
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
#-
|
|
71
|
+
# name: Add package to etherpad organization
|
|
72
|
+
# run: pnpm access grant read-write etherpad:developers
|
|
73
|
+
# env:
|
|
74
|
+
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Node.js Package
|
|
2
|
+
on: [push]
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
backend:
|
|
7
|
+
uses: ./.github/workflows/backend-tests.yml
|
|
8
|
+
secrets: inherit
|
|
9
|
+
frontend:
|
|
10
|
+
uses: ./.github/workflows/frontend-tests.yml
|
|
11
|
+
secrets: inherit
|
|
12
|
+
release:
|
|
13
|
+
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
|
|
14
|
+
needs:
|
|
15
|
+
- backend
|
|
16
|
+
- frontend
|
|
17
|
+
uses: ./.github/workflows/npmpublish.yml
|
|
18
|
+
secrets: inherit
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"deprecated": false,
|
|
12
12
|
"description": "Add support for different Fonts",
|
|
13
13
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
14
|
+
"node": ">=18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/ether/ep_subscript_and_superscript#readme",
|
|
17
17
|
"license": "Apache-2.0",
|
|
@@ -20,14 +20,15 @@
|
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "git+https://github.com/ether/ep_subscript_and_superscript.git"
|
|
22
22
|
},
|
|
23
|
-
"version": "0.3.
|
|
23
|
+
"version": "0.3.4",
|
|
24
24
|
"funding": {
|
|
25
25
|
"type": "individual",
|
|
26
26
|
"url": "https://etherpad.org/"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"eslint": "^8.57.0",
|
|
30
|
-
"eslint-config-etherpad": "^
|
|
30
|
+
"eslint-config-etherpad": "^4.0.4",
|
|
31
|
+
"typescript": "^5.4.2"
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
33
34
|
"lint": "eslint .",
|