mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
e2e test
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -182,14 +182,13 @@ jobs:
|
||||
- name: Ensure static yarn.lock is up to date
|
||||
run: git diff --exit-code static/yarn.lock
|
||||
|
||||
- name: Export display
|
||||
run: export DISPLAY=:1
|
||||
- name: Install fluxbox
|
||||
run: sudo apt-get update && sudo apt-get install -y fluxbox
|
||||
|
||||
- name: Start XVFB
|
||||
run: Xvfb :1 -screen 0 1024x768x16 &&
|
||||
|
||||
- name: Install and start fluxbox
|
||||
run: sudo apt-get update && sudo apt-get install -y fluxbox && fluxbox &&
|
||||
- name: Run Xvfb
|
||||
run: |
|
||||
Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
|
||||
export DISPLAY=:1.0
|
||||
|
||||
- name: Run Playwright test - 1/2
|
||||
run: npx playwright test --reporter github --shard=1/2
|
||||
@@ -199,7 +198,7 @@ jobs:
|
||||
RELEASE: true # skip dev only test
|
||||
|
||||
- name: Run Playwright test - 2/2
|
||||
run: xvfb-run -- npx playwright test --reporter github --shard=2/2
|
||||
run: npx playwright test --reporter github --shard=2/2
|
||||
env:
|
||||
LOGSEQ_CI: true
|
||||
DEBUG: "pw:api"
|
||||
|
||||
16
.github/workflows/e2e.yml
vendored
16
.github/workflows/e2e.yml
vendored
@@ -137,17 +137,19 @@ jobs:
|
||||
- name: Ensure static yarn.lock is up to date
|
||||
run: git diff --exit-code static/yarn.lock
|
||||
|
||||
- name: Export display
|
||||
run: export DISPLAY=:1
|
||||
- name: Install fluxbox
|
||||
run: sudo apt-get update && sudo apt-get install -y fluxbox
|
||||
|
||||
- name: Start XVFB
|
||||
run: Xvfb $DISPLAY -screen 0 1024x768x16 &&
|
||||
- name: Run Xvfb
|
||||
run: |
|
||||
Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
|
||||
export DISPLAY=:1.0
|
||||
|
||||
- name: Install and start fluxbox
|
||||
run: sudo apt-get update && sudo apt-get install -y fluxbox && fluxbox &&
|
||||
- name: Run fluxbox
|
||||
run: fluxbox >/dev/null 2>&1
|
||||
|
||||
- name: Run Playwright test
|
||||
run: xvfb-run -- npx playwright test --reporter github --shard=${{ matrix.shard }}/3
|
||||
run: npx playwright test --reporter github --shard=${{ matrix.shard }}/3
|
||||
env:
|
||||
LOGSEQ_CI: true
|
||||
DEBUG: "pw:api"
|
||||
|
||||
Reference in New Issue
Block a user