Converted tests to typescript. (#6181)

* Converted tests to typescript.

* Run all tests.

* Fixed tests.

* Removed cypress from every installation.

* Use cache for libreoffice.

* Fixed cypress install.

* Fixed cypress install.
This commit is contained in:
SamTV12345 2024-02-22 18:31:17 +01:00 committed by GitHub
parent 4bd27a1c79
commit 546ede284c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 912 additions and 734 deletions

View file

@ -47,10 +47,10 @@ jobs:
run: pnpm config set auto-install-peers false
-
name: Install libreoffice
run: |
sudo add-apt-repository -y ppa:libreoffice/ppa
sudo apt update
sudo apt install -y --no-install-recommends libreoffice libreoffice-pdfimport
uses: awalsh128/cache-apt-pkgs-action@v1.4.1
with:
packages: libreoffice libreoffice-pdfimport
version: 1.0
-
name: Install all dependencies and symlink for ep_etherpad-lite
run: bin/installDeps.sh
@ -98,10 +98,10 @@ jobs:
run: pnpm config set auto-install-peers false
-
name: Install libreoffice
run: |
sudo add-apt-repository -y ppa:libreoffice/ppa
sudo apt update
sudo apt install -y --no-install-recommends libreoffice libreoffice-pdfimport
uses: awalsh128/cache-apt-pkgs-action@v1.4.1
with:
packages: libreoffice libreoffice-pdfimport
version: 1.0
-
name: Install all dependencies and symlink for ep_etherpad-lite
run: bin/installDeps.sh

View file

@ -79,10 +79,10 @@ jobs:
run: pnpm config set auto-install-peers false
-
name: Install libreoffice
run: |
sudo add-apt-repository -y ppa:libreoffice/ppa
sudo apt update
sudo apt install -y --no-install-recommends libreoffice libreoffice-pdfimport
uses: awalsh128/cache-apt-pkgs-action@v1.4.1
with:
packages: libreoffice libreoffice-pdfimport
version: 1.0
- name: Get pnpm store directory
shell: bash
run: |

View file

@ -148,6 +148,7 @@ jobs:
name: Run Etherpad
working-directory: etherpad/src
run: |
pnpm install cypress
.\node_modules\.bin\cypress.cmd install --force
pnpm run prod &
curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test