From 72de1c29d41477a1996bb282f7f9d1d2a4474c04 Mon Sep 17 00:00:00 2001 From: Jimisola Laursen Date: Mon, 9 Mar 2026 15:33:53 +0100 Subject: [PATCH] fix: use xvfb-run directly and add headless launch args --- .github/workflows/build.yml | 8 ++------ .vscode-test.mjs | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c87955e..8617e8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,14 +31,10 @@ jobs: run: npm ci - name: Run headless test - uses: GabrielBB/xvfb-action@b706e4e27b14669b486812790492dc50ca16b465 # v1.7 - with: - run: npm run test-with-report + run: npm run test-with-report - name: Run UI tests - uses: GabrielBB/xvfb-action@b706e4e27b14669b486812790492dc50ca16b465 # v1.7 - with: - run: npm run test:ui + run: xvfb-run --auto-servernum npm run test:ui - name: Build project run: npm run build diff --git a/.vscode-test.mjs b/.vscode-test.mjs index 608df8b..8185790 100644 --- a/.vscode-test.mjs +++ b/.vscode-test.mjs @@ -2,6 +2,7 @@ import { defineConfig } from '@vscode/test-cli' export default defineConfig({ files: 'out/test/*.test.js', + launchArgs: ['--headless', '--disable-gpu'], mocha: { reporter: 'mocha-junit-reporter', },