Fixed windows build.

This commit is contained in:
SamTV12345 2024-02-10 16:21:03 +01:00
parent 1538cd344d
commit 7049372f4a
10 changed files with 22 additions and 21 deletions

View file

@ -33,7 +33,7 @@ try export GIT_WORK_TREE=${TMP_FOLDER}; git checkout HEAD -f \
|| fatal "failed to copy etherpad to temporary folder"
try mkdir "${TMP_FOLDER}"/.git
try git rev-parse HEAD >${TMP_FOLDER}/.git/HEAD
try cp -r ./src/node_modules "${TMP_FOLDER}"/src/node_modules
try pnpm i "${TMP_FOLDER}"/src/node_modules
try cd "${TMP_FOLDER}"
[ -f src/package.json ] || fatal "failed to copy etherpad to temporary folder"

View file

@ -25,7 +25,7 @@ TODO
To run the backend tests, run the following from the Etherpad working directory:
```shell
(cd src && npm test)
(cd src && pnpm test)
```
To run the frontend tests, visit: http://localhost:9001/tests/frontend/

View file

@ -72,4 +72,4 @@ jobs:
run: src/bin/installDeps.sh
-
name: Run the backend tests
run: cd src && npm test
run: cd src && pnpm test