Skip to content

Commit 01727dc

Browse files
committed
Experiment with xvfb-run
1 parent 9ffecbe commit 01727dc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,18 @@ jobs:
4949
if: steps.cache.outputs.cache-hit != 'true'
5050
run: npm install
5151

52+
- name: Run tests with xvfb
53+
if: runner.os == 'Linux'
54+
run: |
55+
sudo apt-get update
56+
sudo apt-get install -y xvfb
57+
composer run assets --working-dir=build
58+
xvfb-run -a npm test
59+
env:
60+
DISPLAY: ':99'
61+
5262
- name: Run tests
63+
if: runner.os != 'Linux'
5364
run: |
5465
composer run assets --working-dir=build
5566
npm run test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"start": "electron-vite preview",
88
"test": "electron-vite build && playwright test"
9-
},
9+
},
1010
"author": "Drupal Association",
1111
"license": "MIT",
1212
"devDependencies": {

0 commit comments

Comments
 (0)