mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Run only backend tests.
This commit is contained in:
parent
6c340903f2
commit
d94d0744bb
1 changed files with 2 additions and 24 deletions
|
@ -107,27 +107,5 @@ jobs:
|
|||
# For pull requests, ${GITHUB_SHA} is the automatically generated merge
|
||||
# commit that merges the PR's source branch to its destination branch.
|
||||
run: git checkout "${GITHUB_SHA}"
|
||||
|
||||
-
|
||||
name: Install all dependencies and symlink for ep_etherpad-lite
|
||||
run: bin/installDeps.sh
|
||||
- name: Install playwright
|
||||
working-directory: src
|
||||
run: pnpm exec playwright install chromium --with-deps
|
||||
-
|
||||
name: Run Etherpad & Test Frontend
|
||||
working-directory: ./src
|
||||
run: |
|
||||
pnpm run dev &
|
||||
connected=false
|
||||
can_connect() {
|
||||
curl -sSfo /dev/null http://localhost:9001/ || return 1
|
||||
connected=true
|
||||
}
|
||||
now() { date +%s; }
|
||||
start=$(now)
|
||||
while [ $(($(now) - $start)) -le 15 ] && ! can_connect; do
|
||||
sleep 1
|
||||
done
|
||||
pnpm exec playwright install chromium --with-deps
|
||||
pnpm run test-ui --project=chromium
|
||||
- name: Run the backend tests
|
||||
run: pnpm run test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue