Skip to content

Commit d466b9e

Browse files
committed
chore: bypass X server issue
1 parent 41b0f80 commit d466b9e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/test.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ on:
22
pull_request:
33
branches:
44
- master
5-
5+
66
name: Test extension
77
jobs:
88
deploy:
@@ -11,5 +11,16 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- run: npm install
1313

14-
- name: Run tests
15-
run: npm test
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: latest
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Run VS Code Tests with xvfb
23+
run: |
24+
export ELECTRON_DISABLE_GPU=1
25+
export ELECTRON_OZONE_PLATFORM_HINT=x11
26+
xvfb-run --auto-servernum npm test

0 commit comments

Comments
 (0)