mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Upload playwright report.
This commit is contained in:
parent
4854098cfb
commit
72c3294156
1 changed files with 8 additions and 10 deletions
18
.github/workflows/frontend-admin-tests.yml
vendored
18
.github/workflows/frontend-admin-tests.yml
vendored
|
@ -136,16 +136,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pnpm run dev &
|
pnpm run dev &
|
||||||
log "Waiting for Etherpad to accept connections (http://localhost:9001)..."
|
log "Waiting for Etherpad to accept connections (http://localhost:9001)..."
|
||||||
connected=false
|
sleep 20
|
||||||
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
|
|
||||||
cd src
|
cd src
|
||||||
pnpm exec playwright install
|
pnpm exec playwright install
|
||||||
pnpm run test-admin
|
pnpm run test-admin
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: playwright-report
|
||||||
|
path: src/playwright-report/
|
||||||
|
retention-days: 30
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue