@@ -22,20 +22,20 @@ jobs:
2222 version : 1.0
2323 -
2424 name : Install etherpad core
25- uses : actions/checkout@v6
25+ uses : actions/checkout@v4
2626 with :
2727 repository : ether/etherpad-lite
2828 path : etherpad-lite
29- - uses : pnpm/action-setup@v5
29+ - uses : pnpm/action-setup@v3
3030 name : Install pnpm
3131 with :
32- version : 8
32+ version : 10
3333 run_install : false
3434 - name : Get pnpm store directory
3535 shell : bash
3636 run : |
3737 echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38- - uses : actions/cache@v5
38+ - uses : actions/cache@v4
3939 name : Setup pnpm cache
4040 with :
4141 path : ${{ env.STORE_PATH }}
@@ -44,49 +44,28 @@ jobs:
4444 ${{ runner.os }}-pnpm-store-
4545 -
4646 name : Checkout plugin repository
47- uses : actions/checkout@v6
47+ uses : actions/checkout@v4
4848 with :
4949 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
6150 - name : Remove tests
6251 working-directory : ./etherpad-lite
6352 run : rm -rf ./src/tests/backend/specs
6453 -
6554 name : Install Etherpad core dependencies
6655 working-directory : ./etherpad-lite
6756 run : bin/installDeps.sh
68- - name : Link plugin to etherpad-lite
57+ - name : Install plugin
6958 working-directory : ./etherpad-lite
7059 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
60+ pnpm run plugins i --path ../../plugin
8361 -
8462 name : Run the backend tests
85- working-directory : ./etherpad-lite
63+ working-directory : ./etherpad-lite/src
8664 run : |
87- res=$(find .. -path "./node_modules/ep_*/static/tests/backend/specs/**" | wc -l)
65+ shopt -s globstar
66+ res=$(find ./plugin_packages -path "*/static/tests/backend/specs/*" 2>/dev/null | wc -l)
8867 if [ $res -eq 0 ]; then
8968 echo "No backend tests found"
9069 else
91- pnpm run test
70+ npx cross-env NODE_ENV=production mocha --import=tsx --timeout 120000 --recursive node_modules/ep_*/static/tests/backend/specs/**
9271 fi
0 commit comments