From 562fd739b0e6e0f1653cdf89e7843f8337403725 Mon Sep 17 00:00:00 2001 From: Konstantinos Kaloutas Date: Tue, 30 May 2023 10:18:43 +0300 Subject: [PATCH] chore: add fluxbox to desktop build --- .github/workflows/build-desktop-release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-desktop-release.yml b/.github/workflows/build-desktop-release.yml index b856e1ef347..26c8cd79765 100644 --- a/.github/workflows/build-desktop-release.yml +++ b/.github/workflows/build-desktop-release.yml @@ -204,8 +204,19 @@ jobs: env: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true + - name: Install Fluxbox + run: sudo apt-get update && sudo apt-get install -y fluxbox + + # Emulate a virtual framebuffer on machines with no display hardware + - name: Run XVFB + run: Xvfb :1 -screen 0 1024x768x24 >/dev/null 2>&1 & + + # Start a lightweight window manager to simulate window actions (maximize,restore etc) + - name: Start Fluxbox + run: DISPLAY=:1.0 fluxbox >/dev/null 2>&1 & + - name: Run Playwright test - run: xvfb-run -- npx playwright test --reporter github --shard=${{ matrix.shard }}/3 + run: DISPLAY=:1.0 npx playwright test --reporter github --shard=${{ matrix.shard }}/3 env: LOGSEQ_CI: true DEBUG: "pw:api"