Skip to content

Commit

Permalink
e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed May 22, 2023
1 parent ba8c8d6 commit 478c21c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,14 @@ jobs:
- name: Ensure static yarn.lock is up to date
run: git diff --exit-code static/yarn.lock

- name: Install fluxbox
- name: Install Fluxbox
run: sudo apt-get update && sudo apt-get install -y fluxbox

- name: Run Xvfb
- name: Run Xvfb and Fluxbox
run: |
Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
export DISPLAY=:1.0
- name: Run fluxbox
run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1
fluxbox >/dev/null 2>&1
- name: Run Playwright test - 1/2
run: DISPLAY=:1.0 npx playwright test --reporter github --shard=1/2
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,14 @@ jobs:
- name: Ensure static yarn.lock is up to date
run: git diff --exit-code static/yarn.lock

- name: Install fluxbox
- name: Install Fluxbox
run: sudo apt-get update && sudo apt-get install -y fluxbox

- name: Run Xvfb
- name: Run Xvfb and Fluxbox
run: |
Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 &
export DISPLAY=:1.0
- name: Run fluxbox
run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1
fluxbox >/dev/null 2>&1
- name: Run Playwright test
run: DISPLAY=:1.0 npx playwright test --reporter github --shard=${{ matrix.shard }}/3
Expand Down

0 comments on commit 478c21c

Please sign in to comment.